Closed pdehaan closed 9 years ago
You can also see that — Peter
gets converted to — Peter
, which doesn't seem right.
Oh, and here was my test case:
'use strict';
var fs = require('fs');
var markdown = require('markdown').markdown;
var output = markdown.toHTML(getFile('./test.md'), "Maruku");
console.log(output);
function getFile(src) {
return fs.readFileSync(src, 'utf-8');
}
I’m not sure the Maruku dialect actually supports fenced code blocks? From what I found on the internet, not by default anyway. Since the parser doesn’t recognise fenced code blocks it is falling back to the default behaviour defined by Gruber cf https://github.com/evilstreak/markdown-js/issues/223
Fenced code blocks are from Github Flavoured Markdown (and probably a few others) which has been started but needs more work in #41.
The &mdash
is related to #16 - we don't currently support HTML (either tags or entities) so we escape everything.
I'm seeing some weird behavior when trying to parse code blocks (with and without specified languages).
Here's my input
Home
var fs = require('fs'); fs.readFileSync('home.md', 'utf8');
Tables?
It's a bit tricky to read, but you can see that the indented code blocks use
<p><code>
instead of<pre><code>
.