mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
7cff3590bc
...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.
12 lines
212 B
Markdown
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" ] , [] ) [] ]
|
|
```
|