Merge remote-tracking branch 'origin/dev'
All checks were successful
Build and Push Docker Image / build (push) Successful in 40s

This commit is contained in:
2025-12-25 17:44:40 +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');