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

ghCodeBlocks set to false but keeps rendering <code> and <pre> tags #996

Open
TunaFFish opened this issue Feb 12, 2024 · 0 comments
Open

Comments

@TunaFFish
Copy link

TunaFFish commented Feb 12, 2024

So I set both global and local:

showdown.setOption('ghCodeBlocks', false); // global
const converter = new showdown.Converter({ ghCodeBlocks: false }); // local
console.log('global ghCodeBlocks: ' + showdown.getOption('ghCodeBlocks'));
console.log('local ghCodeBlocks: ' + converter.getOption('ghCodeBlocks'));

in the console:

global ghCodeBlocks: false
local ghCodeBlocks: false

in markdown when I write:

Hello ```cool``` World

I get in HTML:

Hello <code>cool</code> World

Why are the backticks converted? I have the option set to false..
Am I missing something? My version is v 2.1.0

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