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:42:20 +0200
committerGitHub <noreply@github.com>2020-09-30 21:42:20 +0200
commit01f77f86cea0a6b2b7b74b2105720ee7142d6767 (patch)
tree7f14a361e4b34b82b7eda4aa37240eb9ef96d4d5 /lib/Post.ts
parentcf2cc7ebb9549a611bae251beb08b4c89fa4c1cc (diff)
parent263e9abb618ecac0799c7dc0d3639e08dacf9292 (diff)
downloadkronikarz-01f77f86cea0a6b2b7b74b2105720ee7142d6767.tar.gz
kronikarz-01f77f86cea0a6b2b7b74b2105720ee7142d6767.zip
Merge pull request #20 from pniedzwiedzinski/html v2.2.0
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);