nothingislost / obsidian-codemirror-options

Obsidian plugin with options to customize the behavior of CodeMirror
GNU General Public License v3.0
172 stars 13 forks source link

How to set up to see “ the <CODE> and <HTML> buttons” #76

Closed traymi closed 3 years ago

traymi commented 3 years ago

How to set up to see “ the 'CODE' and 'HTML' buttons” ? I have opened all the settings in CodeMirror Options,And did not see any button display at the bottom ( I use is [Blue topaz] theme ) . Did I set something wrong?

set

button

traymi commented 3 years ago

Do 'obsidian-codemirror-options' support mermaid ? how to set mermaid ? mermaid

nothingislost commented 3 years ago

Oh, sorry about that. Those buttons aren't from my plugin. I set those up using the cMenu plugin which allows you to map commands to icons.

Mermaid is not currently supported natively but you can wrap your mermaid chart in an admonition (assuming you use the admonition plugin) as a work around like this:

````ad-info
```mermaid
<mermaid code goes here>
traymi commented 3 years ago

Thank you for solving my problem. Thank you so much