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(+) 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 3e4e1bfd1da553d7b1addc4239de4489169d9792 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 25 Jun 2020 23:03:32 +0200 Subject: Update package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", -- 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(-) 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