Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown to LaTeX: Level 6 Heading #8069

Open
cab-1729 opened this issue May 13, 2022 · 2 comments · May be fixed by #8298
Open

Markdown to LaTeX: Level 6 Heading #8069

cab-1729 opened this issue May 13, 2022 · 2 comments · May be fixed by #8298

Comments

@cab-1729
Copy link

cab-1729 commented May 13, 2022

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.

@tinaoberoi
Copy link

Hi I would like to work on this issue, is it possible for you to assign this to me ?

@jgm
Copy link
Owner

jgm commented Dec 4, 2022

Sure. I'm not completely sure about this one, since \subsubparagraph isn't standard LaTeX, but it gets requested often enough. I think it might be a good idea to put the relevant code under a conditional in the template, and only include it if the document actually has level-6 headings (we do something similar with math, see stMath in WriterState).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants