minor refactoring

This commit is contained in:
Hans Pagel
2021-02-05 22:43:32 +01:00
parent 26c7b20287
commit aab81ac739

View File

@@ -1,6 +1,7 @@
import { Decoration, DecorationSet } from 'prosemirror-view'
import { Node } from 'prosemirror-model'
export default function (doc: any) {
export default function (doc: Node) {
const hexColor = /(#[0-9a-f]{3,6})\b/ig
const results: any[] = []
const decorations: [any?] = []