Markdown: Don't XML escape the output when not HTML

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2017-01-17 22:20:05 +01:00
parent 49d60ff879
commit 2e3bdcf5c6

View file

@ -78,6 +78,10 @@ export default class Markdown {
}
}
} else {
renderer.out = function(s) {
this.lit(s);
}
renderer.paragraph = function(node, entering) {
// If there is only one top level node, just return the
// bare text: it's a single line of text and so should be