Skip to main content

Remove Local Styling

Clean up your topics by removing inline style attributes, forcing all styling to come from your CSS stylesheets.

Remove Styling from Topic​

Remove local styling from the current topic:

  1. Open a topic file.
  2. Click Remove local styling (topic) in the Styling group.
  3. All inline style attributes are removed from elements (except tables).

Remove Styling from Project​

Remove local styling from all topics in the project:

  1. Click Remove local styling (project) in the Styling group.
  2. All inline style attributes are removed from all topic files (except tables).

What Gets Removed​

  • Inline style attributes
  • Direct font formatting
  • Color and size attributes
  • Spacing and margin attributes

What's Preserved​

  • Table styling (to maintain table layouts)
  • Class attributes
  • ID attributes
  • All other non-style attributes

Use Cases​

  • Clean up content imported from Word or HTML
  • Enforce stylesheet-based formatting
  • Prepare content for new design systems
  • Eliminate inconsistent formatting