Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it has the same issue as e.g. automatically rendering Mermaid diagrams on GitHub: now you can't just show a block of Mermaid code, without dropping the language annotation.


There's a trick you can use there (which works with GFM and with Framework too): wrap a block in four backticks like this:

    Here is a mermaid example:
    ````
    ```mermaid
    Code here
    ```
    ````
    Copy that into a Markdown file to try it


You can write ```mermaid run=false for that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: