feat: rendering pipeline logic
This commit is contained in:
8
server/modules/rendering/markdown-mathjax/definition.yml
Normal file
8
server/modules/rendering/markdown-mathjax/definition.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
key: markdownMathjax
|
||||
title: Mathjax Pre-Processor
|
||||
description: Pre-parse TeX blocks for Mathjax
|
||||
author: requarks.io
|
||||
icon: functions
|
||||
enabledDefault: false
|
||||
dependsOn: markdownCore
|
||||
props: {}
|
11
server/modules/rendering/markdown-mathjax/renderer.js
Normal file
11
server/modules/rendering/markdown-mathjax/renderer.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const mdMathjax = require('markdown-it-mathjax')()
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - Mathjax Preprocessor
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(mdMathjax)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user