Skip to content

🐛 Documentation: smart quotes conversion is applied to diagnostic code blocks #1596

@Nicolapps

Description

@Nicolapps

Environment information

Not applicable (bug applies to the biomejs.dev website)

What happened?

On the documentation website, smart quotes substitution is currently applied to diagnostic code blocks. This means that for instance, a " character (U+0022 QUOTATION MARK / ") is displayed as (U+201C FT DOUBLE QUOTATION MARK “). Sometimes, the character is also displayed as an HTML entity code (“"” instead of ").

Example from the useGoogleFontPreconnect page:

Expected result

  ⚠ The attribute rel=“preconnect” is missing from the Google Font.
  
  > 1 │ <link href=“https://fonts.gstatic.com&quot;/>
      │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2 │ 

instead of

  ⚠ The attribute rel="preconnect" is missing from the Google Font.
  
  > 1 │ <link href="https://fonts.gstatic.com"/>
      │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2 │ 

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

    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