Skip to content

showdown.min.js interprets underscore in http links as italic  #444

@linw789

Description

@linw789
<script type="text/javascript" src="showdown.min.js"></script>
<script>
    showdownMarker = new showdown.Converter({tasklists: "true"})
    let testDivElem = document.querySelector("#testdiv");
    testDivElem.innerHTML = showdownMarker.makeHtml("http://test_web_page.html");
</script>

The processed html will become something like this:
<p>http://test<em>web</em>page.html</p>
Event if simplifiedAutoLink is turned on.
This is found in the version 1.7.5.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions