Fix folding code blocks / lists with front matter

This commit is contained in:
Matt Bierner
2018-09-07 11:36:20 -07:00
parent 8c6051e032
commit 5eab03cf75
2 changed files with 31 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ export class MarkdownEngine {
return engine.parse(text, {}).map(token => {
if (token.map) {
token.map[0] += offset;
token.map[1] += offset;
}
return token;
});