feat: support MultiMarkdown tables (#2126)

This commit is contained in:
Regev Brody
2020-07-04 00:46:07 +03:00
committed by GitHub
parent cf3a48a6fa
commit 41327dd1e8
5 changed files with 62 additions and 0 deletions

View File

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

View File

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