Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Embedded Blocks #347

Open
pat-richter opened this issue Jun 1, 2022 · 4 comments
Open

Feature Request: Embedded Blocks #347

pat-richter opened this issue Jun 1, 2022 · 4 comments

Comments

@pat-richter
Copy link

pat-richter commented Jun 1, 2022

Context:
Obsidian has an advanced markdown syntax, which allows you to embed existing blocks in other pages:
![[Another_Page#^123rdBlock]]

Issue:
Using this inside a flashcard will not print the embedded block, but the embed code only.

Solution:
Have there been attempts to solve this issue? A comment from @Pseudonium seems to mark it as unsupported if I read this correctly (even when I don't find where this happens). Is it true?

However, maybe I can help to implement this with some guidance.

Kind regards
Patrick

@pat-richter
Copy link
Author

After looking around, I'm afraid that this should be integrated in the Obsidian Plugin-API itself: https://forum.obsidian.md/t/obsidian-plugin-api-does-not-support-rendering-of-embeds/24617/3
You might upvote this thread to raise visibility.

One could create it for this plugin, but then, it could/should be also an entry point for the API...

@RafaelGB
Copy link

RafaelGB commented Jun 17, 2022

I am working on it too in dbfolder plugin. RafaelGB/obsidian-db-folder#136

Try MarkdownPreviewView.renderMarkdown instead of MarkdownRenderer

@ShootingKing-AM
Copy link
Member

Not only Blocks but other Embeds too(like heading embeds), its very required feature saves a lot of processing to make cards
+1

@GottZ
Copy link

GottZ commented Mar 13, 2024

blacksmithgu/obsidian-dataview#2266
I've just made a permanent fix for obsidian-dataview. maybe this is interesting here too.

the proper way is to use MarkdownRenderer.render and not MarkdownRenderer.renderMarkdown (which also got deprecated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants