Open rufuspollock opened 2 years ago
I've been stumped on the transclusion of MD content in my own personal remark plugin for Obsidian. Major issue is it's a cart-horse problem since you can't know what to embed into that transclusion until after it's been parsed. I've had a few ideas to solve this, thought I'd share:
The first idea is bad and shouldn't be used.
The second idea is cumbersome, but ought to be largely foolproof. Just insert a node in place of the transcluded MD syntax and then in a rehype plugin grab that freshly parsed content and embed it.
The third is what I am using (and the remark-obsidian plugin is as well) but it's got a lot of edge cases and other issues.
@ispringle very useful analysis. Agree this one (i.e. full page embedding) is not simple.
See https://help.obsidian.md/How+to/Embed+files
File types supported (note we may support more e.g. everything web browser supports)
Acceptance