feat: page display + renderers reorg

This commit is contained in:
Nicolas Giard
2018-08-20 01:02:57 -04:00
parent 4bb522f9d9
commit db8e598e9a
36 changed files with 241 additions and 52 deletions

View File

@@ -0,0 +1,7 @@
key: markdownMathjax
title: Mathjax Pre-Processor
description: Pre-parse TeX blocks for Mathjax
author: requarks.io
dependsOn:
- markdownCore
props: {}

View File

@@ -0,0 +1,15 @@
const mdMathjax = require('markdown-it-mathjax')()
// ------------------------------------
// Markdown - Mathjax Preprocessor
// ------------------------------------
module.exports = {
key: 'markdown/mathjax',
title: 'Mathjax Preprocessor',
dependsOn: [],
props: [],
init (md, conf) {
md.use(mdMathjax)
}
}