-
Hi there, first of all thanks so much for this project ! I use it is all my open source python libs. I am currently working on porting the sphinx-gallery project to mkdocs. I wish to customize the background color of code blocks to distinguish the console outputs (background color #fafae2) from the code inputs (standard color from theme). I am stuck trying to set attributes on the markdown code block: I tried adding my custom class Is this possible ? Thanks a lot in advance ! EDIT: To illustrate what I would like to reproduce, you may see the "out" part of this page: https://scikit-learn.org/stable/auto_examples/linear_model/plot_ols.html#sphx-glr-auto-examples-linear-model-plot-ols-py |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The syntax for code blocks is: ```{ .python .extra-class }
import hello_world
``` See the Python Markdown Extensions docs for more guidance: |
Beta Was this translation helpful? Give feedback.
The syntax for code blocks is:
See the Python Markdown Extensions docs for more guidance:
https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#injecting-classes-ids-and-attributes