You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inside makedocs(), to get purple admonitions when using !!! practice. This doesn't seem to work anymore, since the admonition name doesn't seem to get passed into the html for non-defaults. Eg Example1:
!!! practice "test"
This is a test
gets turned into
<div class="admonition"><header class="admonition-header">test</header><div class="admonition-body"><p>This is a test</p></div></div>
Whereas Example2:
!!! compat "test"
This is a test
gets turned into
<div class="admonition is-compat"><header class="admonition-header">test</header><div class="admonition-body"><p>This is a test</p></div></div>
Proposal
Add the admonition type to the class, so that example 1 above would get turned into
<div class="admonition is-practice"><header class="admonition-header">test</header><div class="admonition-body"><p>This is a test</p></div></div>
Then, if I understand correctly, I could change my admonitions.css to
The problem
Prior to 0.24 (I think), it was possible to add custom admonition styling. Eg, I could make
docs/assets/admonitions.css
containingand
inside
makedocs()
, to get purple admonitions when using!!! practice
. This doesn't seem to work anymore, since the admonition name doesn't seem to get passed into the html for non-defaults. Eg Example1:gets turned into
Whereas Example2:
gets turned into
Proposal
Add the admonition type to the class, so that example 1 above would get turned into
Then, if I understand correctly, I could change my
admonitions.css
toThe text was updated successfully, but these errors were encountered: