summary refs log tree commit diff
path: root/lib/Post.ts
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-06-25 21:07:41 +0000
committerGitHub <noreply@github.com>2020-06-25 21:07:41 +0000
commita934501255ab09bcce133dc6b903f70f6baee462 (patch)
tree57e95770af2ce03c948bee2bed2b4b8557b650e6 /lib/Post.ts
parentcf8a99205c40771c0081787ab662bb07de0ba257 (diff)
parent539b1373173cbd0f4b1366bc5fc1d8d0feeaa6d1 (diff)
downloadkronikarz-a934501255ab09bcce133dc6b903f70f6baee462.tar.gz
kronikarz-a934501255ab09bcce133dc6b903f70f6baee462.zip
Merge pull request #13 from pniedzwiedzinski/html5-media
Html5 media
Diffstat (limited to 'lib/Post.ts')
-rw-r--r--lib/Post.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Post.ts b/lib/Post.ts
index f99ef83..77d16d4 100644
--- a/lib/Post.ts
+++ b/lib/Post.ts
@@ -3,6 +3,8 @@ import { JSDOM } from 'jsdom';
 
 const frontmatter = require('front-matter');
 const md = require('markdown-it')();
+const { html5Media } = require('@gerhobbelt/markdown-it-html5-media');
+md.use(html5Media);
 
 import { dateToPath, dateToString } from './utils';
 import { Date, FrontMatterObject, PostApiEntry, Meta } from './interfaces';