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

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

Open
1 task done
Nicolapps opened this issue Dec 26, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@Nicolapps
Copy link

Nicolapps commented Dec 26, 2024

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
@Conaclos Conaclos transferred this issue from biomejs/biome Dec 26, 2024
@Conaclos Conaclos added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed and removed Lang-English labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants