-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Cannot add css classes to implicit_figures #3094
Comments
could you use the @media print{
.noprint, .noprint+.caption {
display:none;
}
}
|
This would not hide the |
No, but if everything in the div is display:none then it might note show up. Depends on your layout etc. |
Faced the same issue with implicit figures in html5:
Everything is correct, but
In such a case, custom style sheet will be trivial and allow to freely stylize everything: |
With pandoc 3.1.5, the id attribute, at least, does get put on figure (but not class). |
Thanks for the info, it's good to know. I still use pandoc 2.19.2 in Fedora 38, though. What about BTW: If |
I'm very tempted to move |
When creating an
implicit_figure
, e.g.then the style information is attached to the
<img>
tag, not the<div class="figure">
tag:This prevents different styling of figures via CSS, e.g.
(This would leave the caption in the document.)
I don’t have a good idea about a backwards-compatible syntax that would allow the user to assign style data to the outermost
<div>
, though.The text was updated successfully, but these errors were encountered: