Skip to content

How to code highlight yaml? #7243

Answered by kamilkrzyskow
vekexasia asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @vekexasia,
those are not features of the theme:

    - pymdownx.highlight:
        use_pygments: true
    - pymdownx.superfences

read the docs again, you need to put them in markdown_extensions:

markdown_extensions:
  - pymdownx.highlight:
      anchor_linenums: true
  - pymdownx.superfences

https://www.mkdocs.org/user-guide/configuration/#markdown_extensions

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vekexasia
Comment options

Answer selected by vekexasia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants