summary refs log tree commit diff
path: root/lib/Post.ts
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-30 21:28:52 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-30 21:28:52 +0200
commit08f2c20425aa007289f4a9b9e17e48b6ce5adb73 (patch)
treea411045bc38da7c0328e206874d037d162a81e2e /lib/Post.ts
parenta29d97d7f7c8c26896ea9e7e0b52bf6aa1ea71d0 (diff)
downloadkronikarz-08f2c20425aa007289f4a9b9e17e48b6ce5adb73.tar.gz
kronikarz-08f2c20425aa007289f4a9b9e17e48b6ce5adb73.zip
Add html rendering
Diffstat (limited to 'lib/Post.ts')
-rw-r--r--lib/Post.ts6
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);