-
Notifications
You must be signed in to change notification settings - Fork 137
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
bug parsing HTML (<pre><code>) #356
Comments
Status QuoHere is what kind of HTML Earmark supports, and I will update the documentation which is not good (was even missing lately)
<tag...>{content}</tag>{suffix} which will render {"tag", [], ["content"], %{verbatim: true}} # 1.4.6 format
<tag>
{content}
</tag> {"tag", [], [content], %{verbatim: true}} where both, So I will take two actions,
Ok with you? |
I just found that when testing it, and thought I would be good to report it. there are no worries about regressions. |
You have just named the game, I believe that all the issues you brought up are very valid and while investigating I have some hopes to recursively parse HTML with cleaner code, but not sure yet, however this cannot go into 1.4.6. but I will try to treat HTML nicely (against my will 😉) in 1.5 |
Would it be possible to have an option to leave a copy of the original HTML element in the metadata whenever |
Do you mean {"div", [{"class", "elixir"}] [best code ever] %{verbatim: true}} ---> {"div", [{"class", "elixir"}] [best code ever] %{verbatim: true, html: ~s[<div class="elixir">best code ever</div>]}} sure sounds like a sound idea to me. |
yes. exactly that! |
This issue should be obsoleted by #358 (which is RobertDober/earmark_parser#7) and the Verbatim Annotation Part is implemented by RobertDober/earmark_parser#8 |
Two semantically equal expressions, but the second one fails.
The text was updated successfully, but these errors were encountered: