feat: rendering pipeline logic
This commit is contained in:
8
server/modules/rendering/markdown-abbr/definition.yml
Normal file
8
server/modules/rendering/markdown-abbr/definition.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
key: markdownAbbr
|
||||
title: Abbreviations
|
||||
description: Parse abbreviations into abbr tags
|
||||
author: requarks.io
|
||||
icon: text_format
|
||||
enabledDefault: true
|
||||
dependsOn: markdownCore
|
||||
props: {}
|
11
server/modules/rendering/markdown-abbr/renderer.js
Normal file
11
server/modules/rendering/markdown-abbr/renderer.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const mdAbbr = require('markdown-it-abbr')
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - Abbreviations
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(mdAbbr)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user