-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Raw HTML is not interpreted as one #437
Comments
Raw HTML needs to be wrapped in code-blocks, in order to disambiguate the meaning of ``` {=html}
<video><source src='./static/otaku-builder-sdcs-unicorn-destroy-mode.mp4' type='video/mp4' /></video>
``` Example: https://raw.githubusercontent.com/srid/guide.cerveau.app/master/index.md |
Documentation on this custom syntax: https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/raw_attribute.md |
<video />
element is interpreted as a Zettel link
Yup, that works, thank you! I’m also now seeing the autolink footnote in the Neuron guide, which I’m assuming why Neuron has the issue with (some, but not all?) HTML elements. Given my expectation that valid HTML is valid markdown, this definitely took me by surprise. (I’m trying to figure out how to phrase this that’s not just entitled user, but I’m sorry if I miss the mark)—would it be worth considering deprecating the auto link behavior in Neuron now that wiki links are recommended, so that there isn’t the issue with HTML in MD? Not fully supporting HTML in the markdown is definitely a surprise for people who are used to MD, especially anyone who uses it with other static site generators. This would make migrating potentially easier for folks coming from pure MD environments. But I’m also very aware that it would leave existing Neuron users with a problem... If that breaking change isn’t something you want to do, maybe something about this in the Zettel Markdown docs at least would help others who run into the same issue? |
Meanwhile we can indeed document all this. A new page, under https://neuron.zettel.page/markdown.html, can be added describing how to use raw HTML. PR welcome for that! |
Inserting the following HTML into a note:
results in the following in the generated page:
I can embed the video with an iframe, but I prefer to actually save files that are potentially ephemeral (like Youtube videos).
The text was updated successfully, but these errors were encountered: