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 escaping HTML Chars but not constantly #1004

Open
CuzImBisonratte opened this issue Apr 4, 2024 · 1 comment
Open

Showdown escaping HTML Chars but not constantly #1004

CuzImBisonratte opened this issue Apr 4, 2024 · 1 comment

Comments

@CuzImBisonratte
Copy link

In regards to #218 where the outcome was that showdown didn't escape any HTML-Special-Chars I now have the Problem that sometimes HTML-Special Chars are converted and sometimes they aren't.

Here is some Code to reproduce this:

const showdown = require("showdown")
const converter = new showdown.Converter({ simpleLineBreaks: true });

converter.makeHtml("&")
// Output is: '<p>&amp;</p>'

converter.makeHtml("*&*");
// Output is: '<p><em>&</em></p>'

As far as I know see, HTML-Special-Chars are replaced when in plain Text but not, when they are formatted somehow.
Is there any way to turn this fully of or on for all text? I've searched through the config-options but didn't find any setting for this.

CuzImBisonratte added a commit to CuzImBisonratte/WuP that referenced this issue Apr 7, 2024
@CuzImBisonratte
Copy link
Author

Don't know why this has been closed "by me", so reopening now

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