Skip to content

Commit 6f50323

Browse files
committed
use data-render-done
1 parent 7852e1f commit 6f50323

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

web_src/js/markup/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export function displayError(el, err) {
44
errorNode.setAttribute('class', 'ui message error markup-block-error gt-mono');
55
errorNode.textContent = err.str || err.message || String(err);
66
el.before(errorNode);
7-
el.setAttribute('data-done', 'true');
7+
el.setAttribute('data-render-done', 'true');
88
}

web_src/js/markup/math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function renderMath() {
1717

1818
for (const el of els) {
1919
const target = targetElement(el);
20-
if (target.hasAttribute('data-done')) continue;
20+
if (target.hasAttribute('data-render-done')) continue;
2121
const source = el.textContent;
2222
const displayMode = el.classList.contains('display');
2323
const nodeName = displayMode ? 'p' : 'span';

web_src/js/markup/mermaid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function renderMermaid() {
2424

2525
for (const el of els) {
2626
const pre = el.closest('pre');
27-
if (pre.hasAttribute('data-done')) continue;
27+
if (pre.hasAttribute('data-render-done')) continue;
2828

2929
const source = el.textContent;
3030
if (mermaidMaxSourceCharacters >= 0 && source.length > mermaidMaxSourceCharacters) {

0 commit comments

Comments
 (0)