-
Notifications
You must be signed in to change notification settings - Fork 4
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
label-template on ol/li #653
Comments
We should probably generalize this task because an unordered list also have list labels that are customized depending on list levels and indent levels. |
Do you mean unordered lists? This is as generalised as ordered list labels get. |
Yes indeed. Updated the comment. |
|
metanorma/firelight#41
As metanorma/metanorma-iso#319 https://github.com/metanorma/metanorma-iso/blob/main/lib/isodoc/iso/html/style-iso.scss will show, changing the rendering in HTML of a ordered list label is convoluted.
The only way this is going to be realisable at all is by providing a separate value for the rendering template: the label needs to be kept alone as a value, which would be the input into any CSS counter, and then styled by the template:
The CSS would need to be
content: %)
, with%
replaced by the counter value derived from label: b.I will add a label-template attribute to ol/li, which by default will be "%." and in this instance will be "%)".
The text was updated successfully, but these errors were encountered: