summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/Post.ts2
-rw-r--r--package.json3
2 files changed, 4 insertions, 1 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';
diff --git a/package.json b/package.json
index 1dfe621..47ac8b0 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,8 @@
     "@types/jsdom": "^12.2.4",
     "front-matter": "^3.0.2",
     "jsdom": "^15.1.1",
-    "markdown-it": "^10.0.0"
+    "markdown-it": "^10.0.0",
+    "@gerhobbelt/markdown-it-html5-media": "0.6.0-1"
   },
   "devDependencies": {
     "@types/jest": "^24.0.18",