javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.05k stars 67 forks source link

Error thrown in console for single-line callouts #263

Closed vitaly closed 1 year ago

vitaly commented 1 year ago

for the following single line callout:

> [!note] hello

it renders it, but throws the following error in console:

plugin:obsidian-admonition:467 Uncaught TypeError: Cannot read properties of null (reading 'createDiv')
    at d2.calloutProcessor (plugin:obsidian-admonition:467:148)
    at Function.t.postProcess (app.js:1:1617890)
    at t.postProcess (app.js:1:1616705)
    at h (app.js:1:918947)
    at e.onRender (app.js:1:919207)