8000 Pygments styles missing .mb "Number, binary" · Issue #2156 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Pygments styles missing .mb "Number, binary" #2156

@oprypin

Description

@oprypin

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

  • ... the problem doesn't occur with the default MkDocs template
  • ... the problem is not in any of my customizations (CSS, JS, template)
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Pygments syntax highlighting are missing the style .mb - number, binary.

.m, // Number
.mf, // Number, float
.mh, // Number, hex
.mi, // Number, integer
.il, // Number, integer long
.mo { // Number, octal
color: var(--md-code-hl-number-color);
}

Expected behavior

Code that was determined by Pygments to be class="mb" should be highlighted just like all other numbers.

Actual behavior

image

https://oprypin.github.io/crystal-book/syntax_and_semantics/literals/integers.html

Steps to reproduce the bug

```crystal
0b1101
```

Package versions

  • Python: 3.9.1
  • MkDocs: 3c9358bb6afedb559850a640961a691d698866ba
  • Material: 6.2.3

Project configuration

theme: material
markdown_extensions:
  - pymdownx.highlight
  - pymdownx.superfences

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0