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

Github markdown viewer fails when text contains <a #785

Open
rmzetti opened this issue Apr 9, 2020 · 0 comments
Open

Github markdown viewer fails when text contains <a #785

rmzetti opened this issue Apr 9, 2020 · 0 comments

Comments

@rmzetti
Copy link

rmzetti commented Apr 9, 2020

For the examples below (ordinary text, code block, pre, code & div), the same string is used. As can be seen, showdown fails in the last three cases. A numeric instead of an alphabetic character directly after the < works fine for all cases. Also note the ordinary text version also fails in the showdown jsfiddle

//ok for ordinary text
for(i=1;i<a;i++){sum+=i}

  //ok in backtics
  for(i=1;i<a;i++){sum+=i}
  //fails in pre block
  for(i=1;i

  /*fails in code block*/
  for(i=1;i


//fails in div for(i=1;i
@rmzetti rmzetti changed the title Translation fails with when pre content contains <a Github markdown viewer fails when text contains <a May 9, 2020
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

1 participant