mirror of https://github.com/requarks/wiki
parent
09d1f580d9
commit
572393aa7b
@ -0,0 +1,8 @@
|
||||
key: htmlCodehighlighter
|
||||
title: Code Highlighting
|
||||
description: Syntax highlighter for programming code
|
||||
author: requarks.io
|
||||
icon: palette
|
||||
enabledDefault: true
|
||||
dependsOn: htmlCore
|
||||
props: {}
|
@ -1,8 +1,8 @@
|
||||
key: markdownMermaid
|
||||
key: htmlMermaid
|
||||
title: Mermaid
|
||||
description: Generate flowcharts from Mermaid syntax
|
||||
author: requarks.io
|
||||
icon: merge_type
|
||||
enabledDefault: false
|
||||
dependsOn: markdownCore
|
||||
dependsOn: htmlCore
|
||||
props: {}
|
@ -1,8 +1,8 @@
|
||||
key: markdownPlantuml
|
||||
key: htmlPlantuml
|
||||
title: PlantUML
|
||||
description: Generate diagrams from PlantUML syntax
|
||||
author: requarks.io
|
||||
icon: multiline_chart
|
||||
enabledDefault: false
|
||||
dependsOn: markdownCore
|
||||
dependsOn: htmlCore
|
||||
props: {}
|
@ -0,0 +1,8 @@
|
||||
key: markdownImsize
|
||||
title: Image Size
|
||||
description: Adds dimensions attributes to images
|
||||
author: requarks.io
|
||||
icon: insert_photo
|
||||
enabledDefault: true
|
||||
dependsOn: markdownCore
|
||||
props: {}
|
@ -0,0 +1,11 @@
|
||||
const mdImsize = require('markdown-it-imsize')
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - Image Size
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(mdImsize)
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
key: markdownSupsub
|
||||
title: Subscript/Superscript
|
||||
description: Parse subscript and superscript tags
|
||||
author: requarks.io
|
||||
icon: format_size
|
||||
enabledDefault: true
|
||||
dependsOn: markdownCore
|
||||
props:
|
||||
subEnabled:
|
||||
type: Boolean
|
||||
title: Subscript
|
||||
hint: Enable subscript tags
|
||||
default: true
|
||||
supEnabled:
|
||||
type: Boolean
|
||||
title: Supercript
|
||||
hint: Enable supercript tags
|
||||
default: true
|
@ -0,0 +1,17 @@
|
||||
const mdSub = require('markdown-it-sub')
|
||||
const mdSup = require('markdown-it-sup')
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - Subscript / Superscript
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
if (conf.subEnabled) {
|
||||
md.use(mdSub)
|
||||
}
|
||||
if (conf.supEnabled) {
|
||||
md.use(mdSup)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue