From 481fee27bf68ed0fb8cdb82c6027bbbb1e6cad2d Mon Sep 17 00:00:00 2001 From: MrBounty Date: Tue, 26 Nov 2024 19:43:02 +0100 Subject: [PATCH] Added code highlit --- mkdocs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 233dda3..e651cb5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -10,6 +10,7 @@ theme: - navigation.sections # Enable collapsible sections within the sidebar - navigation.expand - navigation.top + - content.code.annotate palette: - media: "(prefers-color-scheme: light)" scheme: default @@ -26,8 +27,13 @@ theme: markdown_extensions: - attr_list - md_in_html - - pymdownx.blocks.caption - - pymdownx.superfences # Often needed with Material for code highlighting + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences plugins: - glightbox - search