From ccedd61f924323143627268e8598b0984933e8ad Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Fri, 29 May 2026 09:44:40 +0300 Subject: [PATCH] =?UTF-8?q?polish(geom7=20ch1-4):=20renderMath=20=D0=B2=20?= =?UTF-8?q?psel=20=D0=B8=20boss-cards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Применён тот же 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). --- frontend/textbooks/geometry_7_ch1.html | 2 ++ frontend/textbooks/geometry_7_ch2.html | 2 ++ frontend/textbooks/geometry_7_ch3.html | 2 ++ frontend/textbooks/geometry_7_ch4.html | 2 ++ 4 files changed, 8 insertions(+) diff --git a/frontend/textbooks/geometry_7_ch1.html b/frontend/textbooks/geometry_7_ch1.html index 50e3f51..e024c03 100644 --- a/frontend/textbooks/geometry_7_ch1.html +++ b/frontend/textbooks/geometry_7_ch1.html @@ -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(){ +'
' +''; }).join(''); + if(window.renderMathInElement) try{ renderMath(cont); }catch(e){} BOSSES.forEach((b,idx)=>{ function show(){ diff --git a/frontend/textbooks/geometry_7_ch2.html b/frontend/textbooks/geometry_7_ch2.html index bdcb550..ebccbc4 100644 --- a/frontend/textbooks/geometry_7_ch2.html +++ b/frontend/textbooks/geometry_7_ch2.html @@ -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(){ +'
' +''; }).join(''); + if(window.renderMathInElement) try{ renderMath(cont); }catch(e){} BOSSES.forEach((b,idx)=>{ function show(){ diff --git a/frontend/textbooks/geometry_7_ch3.html b/frontend/textbooks/geometry_7_ch3.html index 1eb394d..bd796e6 100644 --- a/frontend/textbooks/geometry_7_ch3.html +++ b/frontend/textbooks/geometry_7_ch3.html @@ -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(){ +'
' +''; }).join(''); + if(window.renderMathInElement) try{ renderMath(cont); }catch(e){} BOSSES.forEach((b,idx)=>{ function show(){ diff --git a/frontend/textbooks/geometry_7_ch4.html b/frontend/textbooks/geometry_7_ch4.html index 5caf990..43f377e 100644 --- a/frontend/textbooks/geometry_7_ch4.html +++ b/frontend/textbooks/geometry_7_ch4.html @@ -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(){ +'
' +''; }).join(''); + if(window.renderMathInElement) try{ renderMath(cont); }catch(e){} BOSSES.forEach((b,idx)=>{ function show(){