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

markdown="0" meaning #792

Open
EtienneMiret opened this issue Oct 12, 2023 · 1 comment
Open

markdown="0" meaning #792

EtienneMiret opened this issue Oct 12, 2023 · 1 comment
Assignees

Comments

@EtienneMiret
Copy link

EtienneMiret commented Oct 12, 2023

The kramdown documentation states:

If an HTML tag has an attribute markdown="0", then the tag is parsed as raw HTML block.

However, the below text:

<img markdown="0" alt="" src="images/foo"/>

is translated to:

<p><img alt="" src="images/foo" /></p>

The spurious p element makes me believe my <img/> tag was parsed as span level, not block level.

I guess that’s a documentation bug. Given the other markdown attribute values relates to how the content of a tag is parsed, not how the tag itself is parsed, I guess the intended meaning of markdown="0" is in fact:

If an HTML tag has an attribute markdown="0", then the content of the the tag is parsed as raw HTML.

@gettalong gettalong self-assigned this Oct 13, 2023
@gettalong
Copy link
Owner

Yes, this refers to the content of the tag. I have adapted the wording in the spec. Thank you!

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

2 participants