Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with <pre><code> tags #26

Open
ryanknittel-fdx opened this issue Jul 11, 2022 · 0 comments
Open

Bug with <pre><code> tags #26

ryanknittel-fdx opened this issue Jul 11, 2022 · 0 comments

Comments

@ryanknittel-fdx
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant