Skip to content

Commit

Permalink
Better code highlighting config
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpfenninger committed Dec 22, 2023
1 parent ff535af commit a2144bc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ theme:
features:
- navigation.indexes
- navigation.top
- content.code.copy
logo: img/logo-bw.png
favicon: img/favicon.ico
extra_css:
Expand Down Expand Up @@ -47,6 +48,26 @@ markdown_extensions:
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.arithmatex:
generic: true
block_tag: 'pre'
- pymdownx.inlinehilite:
custom_inline:
- name: math
class: arithmatex
format: !!python/object/apply:pymdownx.arithmatex.arithmatex_inline_format {kwds: {mode: generic}}
- pymdownx.superfences:
preserve_tabs: true
custom_fences:
- name: math
class: arithmatex
format: !!python/object/apply:pymdownx.arithmatex.arithmatex_fenced_format {kwds: {mode: generic, tag: pre}}

extra_javascript:
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

nav:
- Home: index.md
Expand Down

0 comments on commit a2144bc

Please sign in to comment.