diff options
author | Azul <azul@riseup.net> | 2021-10-25 13:59:52 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-01-24 14:29:09 +0300 |
commit | 4221a8243aa5a64abe8782dff838a0d4c4bafdad (patch) | |
tree | 5ce62f2f18b40e7689924c6854f9a6bd168a14e2 /src/EditorFactory.js | |
parent | 02bb65ad2b22c9bf2905940a46690662f79a1b5a (diff) |
Support underline - use `____` in markdown
Fixes: #75.
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r-- | src/EditorFactory.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js index 3123eb9d9..638ff0bd0 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -33,7 +33,7 @@ import { TrailingNode, Placeholder, } from 'tiptap-extensions' -import { Strong, Italic, Strike, Link } from './marks' +import { Strong, Italic, Strike, Link, Underline } from './marks' import { Image, PlainTextDocument, ListItem, BulletList } from './nodes' import MarkdownIt from 'markdown-it' import taskLists from 'markdown-it-task-lists' @@ -80,6 +80,7 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing new Link({ openOnClick: true, }), + new Underline(), new Image({ currentDirectory }), new Placeholder({ emptyNodeClass: 'is-empty', |