Skip to content

Can't make highlighting work for Mermaid diagrams #24

Description

@MurzNN

I create a Quarto document exactly like in the documentation:

---
title: "Mermaid highlighting"
format: html
filters:
  - quarto
  - line-highlight
---
```{mermaid}
%%| echo: true
%%| ht-pattern: "%%<<"
flowchart LR
  A[Hard edge] --> B(Round edge)
  B --> C{Decision}
  C --> D[Result one] %%<<
  C --> E[Result two]
```

But it produces an error:

Syntax error in text
mermaid version 11.12.0

here is a screenshot:
Image

How to fix this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions