-
Notifications
You must be signed in to change notification settings - Fork 181
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
default CSS theme: only center the title header #273
Comments
I'm not sure. In the case of your Manufesto that you linked, I think the better solution is either to just make "Intro", "Abstract", and "Features" We had talked about having If we were to left align non-title |
My markdown linter in vscode seems to agree that we shouldn't use h1 for section headings:
In manubot/manufesto@0fdde9c, I tried out the
Good point regarding supplements. I forgot about that use case. Will update this issue with more final considerations, but for now thinking that I'll probably close as I think the Pandoc convention of using h1 for section headings is a bit misguided. |
That's my opinion as well. h2 seems more appropriate for section headings, h1 for the main title and supplement title. |
Currently all
<h1>
elements are centered due the following CSS:rootstock/build/themes/default.html
Lines 70 to 74 in 6859ada
However, I am thinking that the only
h1
element that should be centered is the title, which pandoc denotes withclass="title"
. Previously this was never an issue because manuscripts usually only had a single h1 heading which was the title. However, from jgm/pandoc#5071 (comment), it appears that pandoc recommends using h1 for the first level of headings (like abstract, introduction, references).This has become an issue for manubot/manufesto#3 where I switched abstract and such to h1 in order to improve the numbed sections. See what the centering of non-title h1 elements looks like in manuscript-1.0.10-9cb98a6.pdf.
@vincerubinetti what do you think?
The text was updated successfully, but these errors were encountered: