-
Notifications
You must be signed in to change notification settings - Fork 73
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
Allow embedding of PDF, video, etc. using image links #351
Conversation
Doing it this way means this syntax will also work for other formats, like video formats: ![](foo.mp4) |
![]()
to embed PDF
@srid Maybe |
@srid maybe |
|
I actually should refactor the whole pandoc related rendering code one day. It has gotten way too complex. Meanwhile, I decoupled the Heist utilities to https://github.com/srid/heist-extra |
@srid I understand that Pandoc mistakenly calls everything |
Pandoc is behaving correctly. Per commonmark spec, https://commonmark.org/help/tutorial/08-images.html It just so happens that Obsidian and the like decide to overload this syntax for embedding non-image resources. If we want to improve the API properly, perhaps we should start from Pandoc itself (as its AST is not that flexible currently); eg.: jgm/pandoc-types#98 |
@srid ok, I take my words back about misbehaving Pandoc. I'm so used to the embedded videos, audios, pdfs, so I forgot that pure Markdown still doesn't allow it |
* Support ![]() to embed PDF * remove trace * use embed img syntax * docs: the same syntax works for videos
Resolves #350
FYI @mnaoumov #341 (comment) - this is how it should be done.