From 7cff3590bc76e3f70cd6a30ac7bc97e860060809 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Dec 2024 15:14:31 -0800 Subject: Allow `--shift-heading-level-by=-1` to work in djot... ...in the same way it works for other formats (with the top-level heading being promoted to metadata title). This needed special treatment because of the way djot surrounds sections with Divs. Closes #10459. --- test/command/10459.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/command/10459.md (limited to 'test/command') diff --git a/test/command/10459.md b/test/command/10459.md new file mode 100644 index 000000000..b45950cf0 --- /dev/null +++ b/test/command/10459.md @@ -0,0 +1,11 @@ +``` +% pandoc -s --shift-heading-level-by=-1 -f djot -t native +# hi +^D +Pandoc + Meta + { unMeta = + fromList [ ( "title" , MetaInlines [ Str "hi" ] ) ] + } + [ Div ( "hi" , [ "section" ] , [] ) [] ] +``` -- cgit v1.2.3