code style

This commit is contained in:
Philipp Kühn
2020-11-06 13:42:40 +01:00
parent d9df787fde
commit c5b9241673

View File

@@ -1,5 +1,8 @@
import {
Command, createMark, markInputRule, markPasteRule,
Command,
createMark,
markInputRule,
markPasteRule,
} from '@tiptap/core'
export const inputRegex = /(?:^|\s)((?:==)((?:[^~]+))(?:==))$/gm
@@ -14,9 +17,7 @@ const Highlight = createMark({
default: null,
parseHTML: element => {
return {
color:
element.getAttribute('data-color')
|| element.style.backgroundColor,
color: element.getAttribute('data-color') || element.style.backgroundColor,
}
},
renderHTML: attributes => {
@@ -38,9 +39,6 @@ const Highlight = createMark({
{
tag: 'mark',
},
{
style: 'background-color',
},
]
},