Compare commits

...

3 Commits

Author SHA1 Message Date
5a999541d8 Merge remote-tracking branch 'origin/dev'
All checks were successful
Build and Push Docker Image / build (push) Successful in 40s
2025-12-25 17:44:40 +03:00
Виталий Лавшонок
cde4765bd7 fix imgs 2025-12-25 17:43:06 +03:00
Виталий Лавшонок
106510e3c9 Main branch changes 2025-12-25 17:35:56 +03:00

View File

@@ -78,7 +78,7 @@ const replaceImages = (
const doc = parser.parseFromString(html, 'text/html');
const latexImageNames = Array.from(
latex.matchAll(/\\includegraphics\{(.+?)\}/g),
latex.matchAll(/\\includegraphics(?:\[[^\]]*\])?\{(.+?)\}/g),
).map((match) => match[1]);
const imgs = doc.querySelectorAll<HTMLImageElement>('img.tex-graphics');