forked from requarks/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support MultiMarkdown tables (requarks#2126)
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
server/modules/rendering/markdown-multi-table/definition.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters