Skip to content

📚 Formatting error in v2 documentation example #2252

@finxol

Description

@finxol

Documentation URL

https://next.biomejs.dev/linter/rules/use-template/

Description

The examples aren't parsed properly, the raw html is shown directly

code-block.js:1:11 [lint/style/useTemplate](https://biomejs.dev/linter/rules/use-template)  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ℹ Template literals are preferred over string concatenation.
  
  > 1 │ const s = foo + “baz”;
      │           ^^^^^^^^^^^
    2 │ 
  
  ℹ Unsafe fix: Use a template literal.
  
    1   │ - const·s·=·foo·+·“baz”;
      1 │ + const·s·=·</strong></span><span style="color: MediumSeaGreen;"><strong>$</strong></span><span style="color: MediumSeaGreen;"><strong>&#123;</strong></span><span style="color: MediumSeaGreen;">f</span><span style="color: MediumSeaGreen;">o</span><span style="color: MediumSeaGreen;">o</span><span style="color: MediumSeaGreen;"><strong>&#125;</strong></span><span style="color: MediumSeaGreen;">b</span><span style="color: MediumSeaGreen;">a</span><span style="color: MediumSeaGreen;">z</span><span style="color: MediumSeaGreen;"><strong>;
    2 2 │

Expectations

The HTML should be parsed properly, like on other pages

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions