Fix some more bugs in MarkdownFromHTML.
[lw2-viewer.git] / js-foreign-lib / convert.js
blob909adad2b472a51a2d26390985f15a7052fd1aa6
1 var showdown  = require('showdown'),
2     converter = new showdown.Converter(),
3     markdown = '';
5 process.stdin.on('data', (chunk) => { markdown += chunk });
7 process.stdin.on('end', () => {
8         process.stdout.write(converter.makeHtml(markdown));
9 });