We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b670d commit a2141feCopy full SHA for a2141fe
tests/smoke/crossref/latex.test.ts
@@ -32,16 +32,22 @@ const subTableRegexes = [
32
];
33
34
const theoremRegexes = [
35
- /\\begin{theorem}[^]*?\\label{thm-line}[^]*?\\end{theorem}/,
+ /\\begin{theorem}[^]*?\\protect\\hypertarget{thm-line}{}\\label{thm-line}[^]*?\\end{theorem}/,
36
/Theorem~\\ref{thm-line}/,
37
38
39
+const theoremRegexesNo = [
40
+ /\\leavevmode\\vadjust pre{\\hypertarget{thm-line}{}}%/,
41
+];
42
+
43
testRender(allQmd.input, "latex", true, [
44
ensureFileRegexMatches(allQmd.output.outputPath, [
45
...simpleFigRegexes,
46
...subFigRegexes,
47
...simpleTableRegexes,
48
...subTableRegexes,
49
...theoremRegexes,
50
+ ], [
51
+ ...theoremRegexesNo,
52
]),
53
]);
0 commit comments