fix highlight

pull/601/head
Pete Matsyburka 4 weeks ago
parent cbffb1e5b8
commit 246ccfb049

@ -153,7 +153,7 @@ export default actionable(targetable(class extends HTMLElement {
const buildDecorations = (doc) => { const buildDecorations = (doc) => {
const decorations = [] const decorations = []
const regex = /\{[a-zA-Z0-9_.-]+\}/g const regex = /\{\{?[a-zA-Z0-9_.-]+\}\}?/g
doc.descendants((node, pos) => { doc.descendants((node, pos) => {
if (!node.isText) return if (!node.isText) return

Loading…
Cancel
Save