nothingislost / obsidian-codemirror-options

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

Transclusion in Admonition #79

Open DutchPete opened 2 years ago

DutchPete commented 2 years ago

I have an Admonition with some text. Below the text I have a transclusion of a paragraph that is somewhere lower in the same note. So, it looks like this:

```ad-note my text

![[#^id number]]

```

In CodeMirror Options I have enabled “Render embeds”, but in Edit mode the embed does not render; it does in Preview.

nothingislost commented 2 years ago

Do you have the Render Code Blocks and Render Admonitions settings enabled? If that doesn't help, try turning off Syntax Highlighting within the Admonitions plugin.

DutchPete commented 2 years ago

Yes, I have Render Code Blocks and Render Admonitions settings enabled, and I never turn on Syntax Highlighting within the Admonitions plugin.

Since I opened this issue I switched to Live Preview, and CodeMirror Options is not yet CM6 compatible, I believe. If that is so, then this issue can be closed because it would not work before CMO is CM6-compatible, which hopefully will happen soon.