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
Add Markdown Inside HTML Blocks like Markdown Extra #14
Comments
Sorry. This is already requested here... |
Doesn't this work as expected in the latest version of ParsedownExtra? |
This does seem to be working! Thank you @erusev! |
@bzerangue I'm glad to hear that. |
I think this needs to have a note on it that the markdown tag needs to be on every tag that is a direct parent of the element - so
doesn't work but
does |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be really helpful for Parsedown Extra to add Markdown Inside HTML Blocks
Previously in Markdown, you couldn’t wrap Markdown-formatted content inside a
<div>
element. This is because<div>
is a block element and plain Markdown does not format the content of such.Markdown Extra gives you a way to put Markdown-formatted text inside any block-level tag. You do this by adding a markdown attribute to the tag with the value 1 — which gives markdown="1" — like this:
The markdown="1" attribute will be stripped and
<div>
’s content will be converted from Markdown to HTML. The end result will look like this:https://michelf.ca/projects/php-markdown/extra/#markdown-attr
The text was updated successfully, but these errors were encountered: