8000 Ligatures being rendered on inline/block code elements · Issue #4381 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Ligatures being rendered on inline/block code elements #4381

@layoaster

Description

@layoaster

Contribution guidelines

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

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

The issue got fixed long time ago but it's happening again. It affects both block & inline code elements.

Expected behaviour

Have monospaced fonts rendered without ligatures like on github:

<region>-realtime
Druid datasource
<region>-realtime

Actual behaviour

Ligatures are being rendered:

image

Steps to reproduce

  1. Using JetBrains Mono for code elements.
  2. Input any pair of characters like -> or -< ligature in a block of code or inline.

Package versions

  • Python: python --version: 3.9.13
  • MkDocs: mkdocs --version: 1.3.1
  • Material: pip show mkdocs-material | grep -E ^Version: 8.5.2

Configuration

site_name: "EA"
site_url: null
repo_name: null
repo_url: null
edit_uri: null

theme:
  name: material
  # Colors
  palette:
    - scheme: default
      toggle:
        icon: material/lightbulb-outline
        name: Switch to dark mode
      primary: indigo
      accent: blue
    - scheme: slate
      toggle:
        icon: material/lightbulb
        name: Switch to light mode
      primary: brown
      accent: orange
  # Fonts
  font:
    text: Roboto
    code: JetBrains Mono

  features:
    - navigation.instant
    - navigation.sections
    - navigation.tabs
    - navigation.expand
    - navigation.top
    - search.suggest
    - search.highlight
    - toc.integrate

System information

  • Operating system: Linux/Ubuntu
  • Browser: Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0