diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-06-25 23:01:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 23:01:15 +0200 |
commit | 8ff9b46dd89f8ad1c177754011d66ea42afe8e0f (patch) | |
tree | fa7a89ebd33a44d23dee5abdac24fc94e05ddc58 | |
parent | cf8a99205c40771c0081787ab662bb07de0ba257 (diff) | |
download | kronikarz-8ff9b46dd89f8ad1c177754011d66ea42afe8e0f.tar.gz kronikarz-8ff9b46dd89f8ad1c177754011d66ea42afe8e0f.zip |
Update Post.ts
-rw-r--r-- | lib/Post.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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'; |