polish(geom7 ch1-4): renderMath в psel и boss-cards

Применён тот же defensive фикс, что и в ch5: renderMath
вызывается после buildParaSelector (psel-карточки) и после
вставки boss-cards. Раньше существующая математика в этих
местах оставалась нерендеренной — показывалась как $...$.

Затрагивает:
- ch1: $a \perp b$ в psel
- ch4: $= 180°$, $|a-b| < c < a+b$, $30°$, $= c/2$ в psel +
  $30°$ в заголовке босса "\§25-26"

ch5 уже был исправлен ранее (коммит 79aaf27).
This commit is contained in:
Maxim Dolgolyov
2026-05-29 09:44:40 +03:00
parent 24abf261e2
commit ccedd61f92
4 changed files with 8 additions and 0 deletions
+2
View File
@@ -346,6 +346,7 @@ function buildParaSelector(){
card.addEventListener('click', ()=>goTo(p.id));
g.appendChild(card);
});
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
}
const BUILT=new Set();
@@ -1588,6 +1589,7 @@ function buildFinal1(){
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
+'</div>';
}).join('');
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
BOSSES.forEach((b,idx)=>{
function show(){
+2
View File
@@ -343,6 +343,7 @@ function buildParaSelector(){
card.addEventListener('click', ()=>goTo(p.id));
g.appendChild(card);
});
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
}
const BUILT=new Set();
@@ -1529,6 +1530,7 @@ function buildFinal2(){
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
+'</div>';
}).join('');
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
BOSSES.forEach((b,idx)=>{
function show(){
+2
View File
@@ -338,6 +338,7 @@ function buildParaSelector(){
card.addEventListener('click', ()=>goTo(p.id));
g.appendChild(card);
});
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
}
const BUILT=new Set();
@@ -1248,6 +1249,7 @@ function buildFinal3(){
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
+'</div>';
}).join('');
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
BOSSES.forEach((b,idx)=>{
function show(){
+2
View File
@@ -334,6 +334,7 @@ function buildParaSelector(){
card.addEventListener('click', ()=>goTo(p.id));
g.appendChild(card);
});
if(window.renderMathInElement) try{ renderMath(g); }catch(e){}
}
const BUILT=new Set();
@@ -1616,6 +1617,7 @@ function buildFinal4(){
+'<div class="feedback" id="boss-'+idx+'-fb"></div>'
+'</div>';
}).join('');
if(window.renderMathInElement) try{ renderMath(cont); }catch(e){}
BOSSES.forEach((b,idx)=>{
function show(){