Skip to content

Bug with <pre><code> tags #26

Description

@ryanknittel-fdx

If you have a <code> tag in a <pre> tag then every time you format the document it adds a new line inside the start of the <pre> tag. This will keep adding new lines to the <pre> tag endlessly.

The formatter should ignore <pre> tags as they preserve whitespace.

Example:

<pre><code>{{ someProp }}</code></pre>

Will turn into:

<pre>


<code>{{ someProp }}</code></pre>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions