showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript

Home Page:http://www.showdownjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

TunaFFish opened this issue · comments

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