-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
First preamble paragraph does not have the implicit lead
role in the preview
#1567
Comments
lead
style in the previewlead
role in the preview
Thanks for creating this issue. I found the cause, and ask the Asciidoctor project for an update in their stylesheet: asciidoctor/asciidoctor#4564 In the meantime, I'll include a workaround in the plugin, which will be part of the next release. I'll update the issue once a pre-release is available. |
The workaround in the plugin will be needed long-term as there's a good reason why the default stylesheet behaves the way it does. See my comment in the linked issue. |
Thanks to the Dan's description, I was able to tune the CSS adjustment that it behaves as expected.
renders with slightly larger preamble while
renders with standard font preamble while
renders with slightly larger preamble |
This fix is now available as pre-release 0.41.10. The pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository. |
Observed vs. expected behavior
https://docs.asciidoctor.org/asciidoc/latest/blocks/preamble-and-lead/#preamble-style says that with the default stylesheet the first preamble paragraph gets the implicit
lead
role if no explicit one is given.If you generate PDF or HTML from the toolbar this is also done.
But the in-editor preview does not apply this implicit
lead
role for the first preamble paragraph.While the "with the default stylesheet" is of course an escape-hatch, it would probably be more consistent to also there use the implicit
lead
role.Steps to reproduce
Environment
Plugin Version: 0.41.8
IntelliJ Details: IntelliJ IDEA 2023.3.4 (Ultimate Edition)
Build #IU-233.14475.28, built on February 13, 2024
The text was updated successfully, but these errors were encountered: