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

Text is lost after html elements #363

Closed
eksperimental opened this issue Jun 25, 2020 · 1 comment
Closed

Text is lost after html elements #363

eksperimental opened this issue Jun 25, 2020 · 1 comment

Comments

@eksperimental
Copy link
Contributor

Look in the second example how CCC is lost

iex(9)> Earmark.as_ast("AAA <p>BBB</p> CCC")
{:ok, [{"p", [], ["AAA <p>BBB</p> CCC"]}], []}

iex(10)> Earmark.as_ast("<p>BBB</p> CCC")    
{:ok, [{"p", [], ["BBB"], %{meta: %{verbatim: true}}}], []}
@RobertDober
Copy link
Collaborator

this behavior will be documented in #357 and will potentially resolved in #358.

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