Skip to content

Instantly share code, notes, and snippets.

@abackstrom
Created July 31, 2012 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abackstrom/3217069 to your computer and use it in GitHub Desktop.
Save abackstrom/3217069 to your computer and use it in GitHub Desktop.
<!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>
@abackstrom
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment