feat: support MultiMarkdown tables (#2126)

This commit is contained in:
Regev Brody authored and GitHub committed 2020-07-03 17:46:07 -04:00
1 parent cf3a48a6fa
commit 41327dd1e8
5 files changed
+37

No files matched your search

@@ -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
})
}
}