Compare commits
3 Commits
58f99122ab
...
5a999541d8
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a999541d8 | |||
|
|
cde4765bd7 | ||
|
|
106510e3c9 |
@@ -78,7 +78,7 @@ const replaceImages = (
|
|||||||
const doc = parser.parseFromString(html, 'text/html');
|
const doc = parser.parseFromString(html, 'text/html');
|
||||||
|
|
||||||
const latexImageNames = Array.from(
|
const latexImageNames = Array.from(
|
||||||
latex.matchAll(/\\includegraphics\{(.+?)\}/g),
|
latex.matchAll(/\\includegraphics(?:\[[^\]]*\])?\{(.+?)\}/g),
|
||||||
).map((match) => match[1]);
|
).map((match) => match[1]);
|
||||||
|
|
||||||
const imgs = doc.querySelectorAll<HTMLImageElement>('img.tex-graphics');
|
const imgs = doc.querySelectorAll<HTMLImageElement>('img.tex-graphics');
|
||||||
|
|||||||
Reference in New Issue
Block a user