From e5f773bc895c1ee04ba8d42505c562e6efc4dea3 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 11 Jul 2022 19:30:49 +0200 Subject: 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 --- src/extensions/RichText.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/extensions/RichText.js') 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({ -- cgit v1.2.3