diff options
Diffstat (limited to 'lib/Post.ts')
-rw-r--r-- | lib/Post.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Post.ts b/lib/Post.ts index 77d16d4..bd10b96 100644 --- a/lib/Post.ts +++ b/lib/Post.ts @@ -2,7 +2,11 @@ import * as fs from 'fs'; import { JSDOM } from 'jsdom'; const frontmatter = require('front-matter'); -const md = require('markdown-it')(); +const md = require('markdown-it')({ + html: true, + breaks: true, + linkify: true +}); const { html5Media } = require('@gerhobbelt/markdown-it-html5-media'); md.use(html5Media); |