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

Showdown is not handling some characters nicely #25

Open
smalers opened this issue Sep 20, 2020 · 1 comment
Open

Showdown is not handling some characters nicely #25

smalers opened this issue Sep 20, 2020 · 1 comment
Assignees
Labels
high Priority: next release if possible XS Size: 2 hours or less

Comments

@smalers
Copy link
Contributor

smalers commented Sep 20, 2020

The Poudre Basin Information website has been updated to have a License file. However, the Markdown containing < and > characters at the end is not being converted properly. Maybe there are other characters that it is also not handling.

Need to figure this out because anything in a tick section should pass through literally.

Need to make Josh aware of the solution so that he can incorporate into the InfoMapper.

@smalers smalers added high Priority: next release if possible XS Size: 2 hours or less labels Sep 20, 2020
@gsofia23
Copy link
Contributor

gsofia23 commented Feb 18, 2021

Angle brackets within code blocks in particular get escaped. Therefore < becomes $lt and > becomes &gt when rendering markdown with ShowdownJS. The solution for this is to wrap code blocks with a <pre></pre> tag otherwise code segments may not be generated as expected.

See this issue below:
showdownjs/showdown#400

Helpful link to display behavior:
https://johnmacfarlane.net/babelmark2/?text=%60%60%60%0A%3Chtml%3E%3C%2Fhtml%3E%0A%60%60%60

A demonstration of this behavior has been added to the cleaned up showdown demo's in app1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high Priority: next release if possible XS Size: 2 hours or less
Projects
None yet
Development

No branches or pull requests

2 participants