Created
July 31, 2012 13:33
-
-
Save abackstrom/3217069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>issue</title> | |
</head> | |
<body> | |
<div id="a"></div> | |
<script src=showdown.js></script> | |
<script> | |
(function(){ | |
var s = "This [link] is broken.\n\n[link]: http://example.com/beforeZafter"; | |
var converter = new Showdown.converter(); | |
var html = converter.makeHtml(s); | |
console.log(html); | |
document.querySelector('#a').innerHTML = html; | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue: showdownjs/showdown#28
Live sample: http://static.bwerp.net/~adam/2012/07/31/issue.html