We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab2dea7 commit 9119090Copy full SHA for 9119090
main.js
@@ -20,6 +20,10 @@
20
}
21
location.search = query; // page will be refreshed
22
23
+
24
+ var document.showdown = require('showdown'),
25
+ document.converter = new showdown.Converter(),
26
27
28
document.getElementById('submit').onclick = submit;
29
document.onkeypress = function (e) {
@@ -47,7 +51,10 @@
47
51
.then(function (res) {
48
52
return res.json().then(function (body) {
49
53
if (res.status === 200) {
50
- return body;
54
55
56
+ html = converter.makeHtml(body);
57
+ return html;
58
59
console.log(res, body); // debug
60
throw new Error('Gist <strong>' + gistId + '</strong>, ' + body.message.replace(/\(.*\)/, ''));
0 commit comments