Skip to content

Commit 1cfb484

Browse files
panglesdjonludlam
authored andcommitted
Also traverse preamble to check for math presence
Signed-off-by: Paul-Elliot <[email protected]>
1 parent 32506df commit 1cfb484

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
compilation unit. This fixes cases where the dune rules would
2828
fail. (@panglesd, #1069)
2929
- Fix issue #1066 with extended opens (@jonludlam, #1082)
30+
- Fix missing katex headers (@panglesd, #1096)
3031

3132

3233
# 2.4.0

src/document/doctree.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ end = struct
369369

370370
and subpage : Subpage.t -> bool = fun x -> page x.content
371371

372-
and page : Page.t -> bool = fun x -> items x.items
372+
and page : Page.t -> bool = fun x -> items x.preamble || items x.items
373373

374374
and alternative : Alternative.t -> bool = function
375375
| Expansion x -> documentedsrc x.expansion

0 commit comments

Comments
 (0)