Code Block inside a collapsable Admonitions #3398
Answered
by
squidfunk
gerrysweeney
asked this question in
Q&A
-
Is it possible to include a syntax coloured code block inside a collapsible Admonitions. This would be quite helpful for me but I cannot seem to find a way of doing it. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
squidfunk
Dec 30, 2021
Replies: 2 comments 6 replies
-
Do you mean something like this? https://facelessuser.github.io/pymdown-extensions/extensions/details/#syntax |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, the documentation even includes several examples, e.g. in the Docker installation guide: Source: ??? question "How to add plugins to the Docker image?"
Material for MkDocs only bundles selected plugins in order to keep the size
of the official image small. If the plugin you want to use is not included,
create a new `Dockerfile` and extend the official Docker image:
``` Dockerfile
FROM squidfunk/mkdocs-material
RUN pip install ...
```
Next, you can build the image with the following command:
```
docker build -t squidfunk/mkdocs-material .
```
The new image can be used exactly like the official image. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
squidfunk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the documentation even includes several examples, e.g. in the Docker installation guide:
Source: