Files
John MacFarlane 7cff3590bc 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.
2024-12-19 15:14:31 -08:00

12 lines
212 B
Markdown

```
% pandoc -s --shift-heading-level-by=-1 -f djot -t native
# hi
^D
Pandoc
Meta
{ unMeta =
fromList [ ( "title" , MetaInlines [ Str "hi" ] ) ]
}
[ Div ( "hi" , [ "section" ] , [] ) [] ]
```