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

Bug with Lines starting with comment #6

Open
RobertDober opened this issue Jul 1, 2020 · 1 comment
Open

Bug with Lines starting with comment #6

RobertDober opened this issue Jul 1, 2020 · 1 comment

Comments

@RobertDober
Copy link
Owner

fix or refute pragdave/earmark#361

iex(10)> Earmark.as_ast "<!-- Replace with better image -->  anything that follows the comment is lost <img src=\"picture.png\"/>"
{:ok, [comment: [" Replace with better image "]], []}

iex(11)> Earmark.as_ast "<img src=\"picture.png\"/> <!-- Replace with better image --> this is not lost"                          
{:ok,
 [
   {"img", [{"src", "picture.png"}], [], %{meta: %{verbatim: true}}},
   "<!-- Replace with better image --> this is not lost"
 ], []}
@bradhanks
Copy link
Contributor

bradhanks commented Feb 5, 2024

I might have a fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants