File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export function displayError(el, err) {
4
4
errorNode . setAttribute ( 'class' , 'ui message error markup-block-error gt-mono' ) ;
5
5
errorNode . textContent = err . str || err . message || String ( err ) ;
6
6
el . before ( errorNode ) ;
7
- el . setAttribute ( 'data-done' , 'true' ) ;
7
+ el . setAttribute ( 'data-render- done' , 'true' ) ;
8
8
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function renderMath() {
17
17
18
18
for ( const el of els ) {
19
19
const target = targetElement ( el ) ;
20
- if ( target . hasAttribute ( 'data-done' ) ) continue ;
20
+ if ( target . hasAttribute ( 'data-render- done' ) ) continue ;
21
21
const source = el . textContent ;
22
22
const displayMode = el . classList . contains ( 'display' ) ;
23
23
const nodeName = displayMode ? 'p' : 'span' ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function renderMermaid() {
24
24
25
25
for ( const el of els ) {
26
26
const pre = el . closest ( 'pre' ) ;
27
- if ( pre . hasAttribute ( 'data-done' ) ) continue ;
27
+ if ( pre . hasAttribute ( 'data-render- done' ) ) continue ;
28
28
29
29
const source = el . textContent ;
30
30
if ( mermaidMaxSourceCharacters >= 0 && source . length > mermaidMaxSourceCharacters ) {
You can’t perform that action at this time.
0 commit comments