-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Adding <p class=".."> to support paragraph indenting similar to TeX #2120
Comments
I suspect this would have to be done in Blackfriday (have you looked at MMark?), so I would sketch out how you plan to implement this before you spend too much time on it. |
Are you sure? Have you tried using
This can be done with sibling selectors as well. |
@rdwatters thank you! I was familiar with "first child" selectors (but they would only select the first paragraph of the content, unless each group of paragraphs was itself wrapped in a |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am converting my blog from WordPress to hugo. I'm very pleased with hugo, it's a great system :)
I would like to achieve the following indenting effect for paragraphs, similar to the style that TeX uses.
I would like to achieve the effect that paragraphs in general are indented, but the first paragraphs, and paragraphs after non-paragraphs, are not.
This cannot be achieved using plain CSS and HTML without Javascript, if the HTML just uses a plain
<p>
tag. It's necessary to add classes to indicate if the paragraph is the first or not. The names that the TeX outputter uses for these classes are<p class="pFirst">
and<p class="pNext">
; these names seem good enough to me.Although this might seem like a specialized issue,
Technically I could change hugo, or blackfriday, to make it work. I'm not sure which is better.
I would be happy to do the work to program this in hugo. Would you be interested in such a patch?
The text was updated successfully, but these errors were encountered: