diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-30 21:28:52 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-30 21:28:52 +0200 |
commit | 08f2c20425aa007289f4a9b9e17e48b6ce5adb73 (patch) | |
tree | a411045bc38da7c0328e206874d037d162a81e2e /lib | |
parent | a29d97d7f7c8c26896ea9e7e0b52bf6aa1ea71d0 (diff) | |
download | kronikarz-08f2c20425aa007289f4a9b9e17e48b6ce5adb73.tar.gz kronikarz-08f2c20425aa007289f4a9b9e17e48b6ce5adb73.zip |
Add html rendering
Diffstat (limited to 'lib')
-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); |