From 8ff9b46dd89f8ad1c177754011d66ea42afe8e0f Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 25 Jun 2020 23:01:15 +0200 Subject: Update Post.ts --- lib/Post.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Post.ts') diff --git a/lib/Post.ts b/lib/Post.ts index f99ef83..e6b858a 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('markdown-it-html5-media'); +md.use(html5Media); import { dateToPath, dateToString } from './utils'; import { Date, FrontMatterObject, PostApiEntry, Meta } from './interfaces'; -- cgit 1.4.1 From 539b1373173cbd0f4b1366bc5fc1d8d0feeaa6d1 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 25 Jun 2020 23:06:09 +0200 Subject: Fix pkg name --- lib/Post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Post.ts') diff --git a/lib/Post.ts b/lib/Post.ts index e6b858a..77d16d4 100644 --- a/lib/Post.ts +++ b/lib/Post.ts @@ -3,7 +3,7 @@ import { JSDOM } from 'jsdom'; const frontmatter = require('front-matter'); const md = require('markdown-it')(); -const { html5Media } = require('markdown-it-html5-media'); +const { html5Media } = require('@gerhobbelt/markdown-it-html5-media'); md.use(html5Media); import { dateToPath, dateToString } from './utils'; -- cgit 1.4.1