summary refs log tree commit diff
path: root/lib/Post.ts
diff options
context:
space:
mode:
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';