From 9bdc4a7de0fb685fa2b8d02280e70aa0b5d92bf9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 17 Apr 2023 13:25:31 +0200 Subject: Write PDF outline --- src/eval/library.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/eval') diff --git a/src/eval/library.rs b/src/eval/library.rs index b93aa0dd..0c635864 100644 --- a/src/eval/library.rs +++ b/src/eval/library.rs @@ -72,6 +72,8 @@ pub struct LangItems { ) -> Vec<(EcoString, Option)>, /// A section heading: `= Introduction`. pub heading: fn(level: NonZeroUsize, body: Content) -> Content, + /// The heading function. + pub heading_func: ElemFunc, /// An item in a bullet list: `- ...`. pub list_item: fn(body: Content) -> Content, /// An item in an enumeration (numbered list): `+ ...` or `1. ...`. -- cgit v1.2.3