Skip to content

📚 Improper escaping of diagnostics output #1440

@cr7pt0gr4ph7

Description

@cr7pt0gr4ph7

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions