Enable diagrams in notes via Mermaid
Similar to how it is supported in GitHub. See https://mermaid.js.org/
-
Gene Rugg commented
Just as a gentle note, the github checkbox syntax seems to be "- [x]" rather than just "[x]", and the first isn't parsed well by TheBrain. This also is undocumented on the markdown-info page.
When I select multiple lines, I get code snippits per line rather than one triple backslash code block.
-
Roberto Luiz Martins Nogueira commented
The way it is Today, the notes tool does not accept and does not render code blocks to have syntax highlighting to a specific language e.g. for Ruby.
```ruby
:
` ``
The same for mermaid, even though is accepted by notes tool it does not render right now.
```mermaid
:
```New idea from comment
This comment was upgraded into a new idea: Enable Code Syntax Highlighting in Notes Editor -
Perhaps you'd like to change this to a request to support something more specific (mermaid?).
-
Note that code blocks are already supported. They can be initiate both via the UI and by entering them manually.
Also, checkboxes added using Github syntax are also already supported.
-
Roberto Luiz Martins Nogueira commented
Improve Markdown in TheBrain, supporting Github way of writing, e.g. create code blocks, diagrams (e.g. mermaid) see:
Writing on GitHub
https://docs.github.com/en/get-started/writing-on-github