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

📚 Improper escaping of diagnostics output #1440

Open
1 task done
cr7pt0gr4ph7 opened this issue Nov 14, 2024 · 0 comments
Open
1 task done

📚 Improper escaping of diagnostics output #1440

cr7pt0gr4ph7 opened this issue Nov 14, 2024 · 0 comments

Comments

@cr7pt0gr4ph7
Copy link
Contributor

Documentation URL

https://biomejs.dev/linter/rules/no-template-curly-in-string/

Description

It seems that the output of the diagnostics, though wrapped into a <pre> in the MDX, is still (partially) processed by the markdown pipeline:

  • Backticks ` are removed from the output.
  • Double quotes " are replaced by fancy quotes and
  • >< (written in the MDX as &gt;&lt;) is sometimes displayed as &gt;&lt; on the final page due to double escaping. Other occurences of &gt; and &lt; properly appear as > and <.

I have checked the problematic text sections using the playground at https://remark.js.org/, where they are rendered without problems. So the problem is probably somewhere in our setup or Astro's setup. If I had to guess, I'd say its related to MDX processing and/or smartypants.

Expectations

Diagnostic output is rendered as-is like the codeblocks.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant