From 08f2c20425aa007289f4a9b9e17e48b6ce5adb73 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 30 Sep 2020 21:28:52 +0200 Subject: Add html rendering --- lib/Post.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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); -- cgit 1.4.1