jgm/pandoc

Markdown to LaTeX: Level 6 Heading

Open

#8.069 geöffnet am 13. Mai 2022

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Haskell (3.850 Forks)batch import
enhancementformat:LaTeXgood first issuetemplateswriter

Repository-Metriken

Stars
 (44.133 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7T) (7 gemergte PRs in 30 T)

Beschreibung

As far as I understand Markdown defines headings upto 6 levels, to correspond to h1-h6 in HTML.

When Pandoc is converting a level 5 heading it is converted to \subparagraph{}, while a level 6 heading is just converted to plain text.

I think it would be better to have a level 6 heading wrapped in a \subsubparagraph{} macro, while having something like \newcommand\subsubparagraph[1]{#1} in default.latex. That way it would preserve the previous behavior, while also making it possible to write templates that modify the behavior of level 6 headings. This would help people like me who are writing templates for converting markdown to pdf.

I don't know haskell yet, so I can't really submit a pull request.

Contributor Guide