diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Posts.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/Posts.tsx b/utils/Posts.tsx index 4b252da..291ea41 100644 --- a/utils/Posts.tsx +++ b/utils/Posts.tsx @@ -5,10 +5,13 @@ import { Marked } from 'marked'; import { markedHighlight } from 'marked-highlight'; import markedOptions from './markedOptions'; +import { renderer, hooks } from '../loaders/marked-renderer.js'; + const hljs = require('highlight.js'); const marker = new Marked( - markedHighlight(markedOptions) + markedHighlight(markedOptions), + { renderer, hooks } ); interface PostMetadata { |