Any mkdocs-material syntax ignored in md files #6516
-
I am probably facing a simple problem but still need help for this. Any mkdocs-material specific syntax that I include in my md files are ignored. i.e. They appear as just text in the rendered page. Here is a dummy project setup to test this. I am on ubuntu. I just created a project Edited the config:
Added something mkdocs-material specific in index.md. A button here.
Running this below seems ok. Any help appreciated. Am I missing something? It seems straight forward enough. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, site_name: My Docs
theme:
name: material
markdown_extensions:
- attr_list https://squidfunk.github.io/mkdocs-material/reference/buttons/#configuration |
Beta Was this translation helpful? Give feedback.
Hello,
for the
{ .md-button }
syntax to work you need to enable theattr_list
markdown extension, and the{}
syntax is not exclusive for mkdocs-material, only themd-button
class is directly related to it.https://squidfunk.github.io/mkdocs-material/reference/buttons/#configuration
https://python-markdown.github.io/extensions/attr_list/