showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

"literalMidWordUnderscores:true" didn't work #775

Open iRuxu opened 4 years ago

iRuxu commented 4 years ago

My options like this blow

const converter = new showdown.Converter({
    parseImgDimension: true,
    strikethrough: true,
    tables: true,
    tasklists: true,
    simpleLineBreaks: true,
    openLinksInNewWindow: true,
    backslashEscapesHTMLTags: true,
    literalMidWordUnderscores:true,
    extensions: ['codehighlight']
});
export default converter;

And all other features work well . But literalMidWordUnderscores didn't work. For example,There is a paragraph

任何类,只需要定义一个call()方法,就可以直接对实例进行调用。

And the "call" will be ouputed like"call" and wrapped by "strong" tag.

Could you help me?