mirror of https://github.com/requarks/wiki
feat: support MultiMarkdown tables (#2126)
parent
cf3a48a6fa
commit
41327dd1e8
@ -0,0 +1,23 @@
|
||||
key: markdownMultiTable
|
||||
title: MultiMarkdown Table
|
||||
description: Add MultiMarkdown table support
|
||||
author: requarks.io
|
||||
icon: mdi-table
|
||||
enabledDefault: false
|
||||
dependsOn: markdownCore
|
||||
props:
|
||||
multilineEnabled:
|
||||
type: Boolean
|
||||
title: Multiline
|
||||
hint: Enable multiple lines rows
|
||||
default: true
|
||||
headerlessEnabled:
|
||||
type: Boolean
|
||||
title: Headerless
|
||||
hint: Enable ommited table headers
|
||||
default: true
|
||||
rowspanEnabled:
|
||||
type: Boolean
|
||||
title: Rowspan
|
||||
hint: Enable table row spans
|
||||
default: true
|
@ -0,0 +1,11 @@
|
||||
const multiTable = require('markdown-it-multimd-table')
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(multiTable, {
|
||||
multiline: conf.multilineEnabled,
|
||||
rowspan: conf.rowspanEnabled,
|
||||
headerless: conf.headerlessEnabled
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Reference in new issue