Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2022-07-11 20:30:49 +0300
committerFerdinand Thiessen <rpm@fthiessen.de>2022-07-19 12:24:58 +0300
commite5f773bc895c1ee04ba8d42505c562e6efc4dea3 (patch)
treea03630ad8fb1609d09c2ad946ca94dd1d7e4a378 /src/extensions/RichText.js
parentd363e831582a1b0c29ddbc100df4293e36186429 (diff)
Added markdown parsing rules to tag special syntax to be not modified when saved
Added a markdown-it and tiptap extension to tag special, unknown, markdown syntax which would be escaped by prosemirror-markdown on save. The tagged part is not touched while saving if they are not modified manually. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to 'src/extensions/RichText.js')
-rw-r--r--src/extensions/RichText.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/extensions/RichText.js b/src/extensions/RichText.js
index bcf566fca..1bc598a16 100644
--- a/src/extensions/RichText.js
+++ b/src/extensions/RichText.js
@@ -34,6 +34,7 @@ import CodeBlock from '@tiptap/extension-code-block'
import HorizontalRule from '@tiptap/extension-horizontal-rule'
import Dropcursor from '@tiptap/extension-dropcursor'
import HardBreak from './HardBreak.js'
+import KeepSyntax from './KeepSyntax.js'
import Table from './../nodes/Table.js'
import Image from './../nodes/Image.js'
import Heading from './../nodes/Heading.js'
@@ -87,6 +88,7 @@ export default Extension.create({
inline: true,
}),
Dropcursor,
+ KeepSyntax,
]
if (this.options.link !== false) {
defaultExtensions.push(Link.configure({