repo.or.cz
/
lw2-viewer.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Gracefully handle errors when a crosspost can't be retrieved.
[lw2-viewer.git]
/
js-foreign-lib
/
convert.js
blob
909adad2b472a51a2d26390985f15a7052fd1aa6
1
var showdown = require('showdown'),
2
converter = new showdown.Converter(),
3
markdown = '';
4
5
process.stdin.on('data', (chunk) => { markdown += chunk });
6
7
process.stdin.on('end', () => {
8
process.stdout.write(converter.makeHtml(markdown));
9
});