squidfunk / mkdocs-material

Documentation that simply works
https://squidfunk.github.io/mkdocs-material/
MIT License
20.53k stars 3.5k forks source link

Menu items are not in italic, sections is. #3293

Closed kierun closed 2 years ago

kierun commented 2 years ago

Contribution guidelines

I've found a bug and checked that ...

Description

screenshot

The menu showing the different sections does not support italic. However, the section does.

Expected behaviour

The menu should be in italic as well.

Actual behaviour

The menu is not in italic.

Steps to reproduce

  1. Create a markdown file with an italic in the title: # ook _eek_ ook
  2. Run mkdocs serve
  3. Look at the page, especially at the menu.

Package versions

√ ; python --version
Python 3.10.0
√ ; mkdocs --version
mkdocs, version 1.2.3 from /home/yann/.pyenv/versions/3.10.0/lib/python3.10/site-packages/mkdocs (Python 3.10)
√ ; pip show mkdocs-material | grep -E "^Version"
Version: 8.0.2

Configuration

site_name: My Top Secret stuff™
theme:
  name: material
  font:
    text: "PT Sans Narrow"
  favicon: assets/favicon.png
  palette:
    scheme: slate
    primary: teal
  logo: assets/logo.png
  features:
    - navigation.instant
markdown_extensions:
  - admonition
  - pymdownx.emoji:
      emoji_index: !!python/name:materialx.emoji.twemoji
      emoji_generator: !!python/name:materialx.emoji.to_svg
  - pymdownx.highlight:
      use_pygments: true
      auto_title: true
      linenums: true
      linenums_style: pymdownx-inline
  - pymdownx.superfences

System information

squidfunk commented 2 years ago

Thanks for reporting. This is not a problem of Material for MkDocs, but of MkDocs or Python Markdown, since the theme seems to get the raw Markdown (with the _..._ modifiers). Please report this upstream.

kierun commented 2 years ago

Ah, my apologies for the noise. ☹

kierun commented 2 years ago

@squidfunk I am so “stealing” your bug report configuration! It's ace. :grin:

squidfunk commented 1 year ago

I'm happy to announce that this is now finally possible with the built-in typeset plugin that was just released as part of Insiders 4.27.0! With the plugin active, the navigation and table of contents sidebars will render headlines with HTML.