-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Im does not found this option in docs. Is this exists?
Like:
<div class="{{ works }}">
<code data-bind="punches: false">
Some {{ example with }} {{ raw }} text
</code>
</div>
UPD Fastfix (slow and have bugs):
for (let node of document.body.querySelectorAll('[data-punches="false"]')) {
node.innerHTML = node.innerHTML
.replace(/(\{\{|\}\})/g, p => `{{"${p}"}}`)
}
UPD Fastfix No2 (does not work):
for (let node of document.body.querySelectorAll('[data-punches="false"]')) {
node.innerHTML = node.innerHTML
.replace(/\{\{/g, '{ {')
.replace(/\}\}/g, '} }');
}
UPD Fastfix No3 (works but has side effects)
for (let node of document.body.querySelectorAll('[data-punches="false"]')) {
node.innerHTML = node.innerHTML
.replace(/\{\{([\s\S]*?)\}\}/g, (i, j) => `{​{${j}}​}`)
}
Metadata
Metadata
Assignees
Labels
No labels