obsidian-plugin-abcjs icon indicating copy to clipboard operation
obsidian-plugin-abcjs copied to clipboard

abcjs blocks break Slides core plugin ('presentation mode')

Open jakebeamish opened this issue 3 years ago • 4 comments

Choosing 'Start presentation' on a file that does not have any abcjs blocks works as expected. However, when trying to do the same with a file that has abcjs blocks in it, nothing happens. I don't understand if this issue could be with this plugin, or with the core plugin Slides.

jakebeamish avatar Mar 07 '21 18:03 jakebeamish

It indeed seems to be an issue with the plugin. It attempts to replace the raw code block with the abcjs target node. However, for some unknown reason, this does not work in presentation mode.

Stack trace for future reference:

app.js:1 DOMException: Failed to execute 'replaceChild' on 'Node': The node to be replaced is not a child of this node.
    at MusicPlugin.postprocessor (eval at <anonymous> (app://obsidian.md/app.js:1:615835), <anonymous>:17647:12)
    at Function.t.postProcess (app://obsidian.md/app.js:1:660111)
    at t.<anonymous> (app://obsidian.md/app.js:1:906710)
    at app://obsidian.md/app.js:1:2999
    at Object.next (app://obsidian.md/app.js:1:3104)
    at s (app://obsidian.md/app.js:1:1843)

TilBlechschmidt avatar Mar 08 '21 09:03 TilBlechschmidt

Thanks for having a look! Sorry I'm pretty incapable when it comes to anything more complicated than a line or two of CSS!

jakebeamish avatar Mar 08 '21 15:03 jakebeamish

Not to worry, every contribution is welcome even if it is just a bug report or a line of CSS 😉

(I'm not sure when I'll get around to fixing it myself though, my time is rather limited atm)

TilBlechschmidt avatar Mar 08 '21 15:03 TilBlechschmidt

Understandable, no worries!

jakebeamish avatar Mar 08 '21 15:03 jakebeamish