NikBulatov
NikBulatov

Reputation: 11

Issue with Cyrillic Anchors Not Scrolling to Headers in MKDocs Material

Problem Description

I’m using Obsidian and have set up a vault where my notes reference each other using specific headers. When I try to follow a link (using anchors) to a header on another page, the link takes me to the correct page, but it doesn’t scroll to or highlight the specific header that the anchor is supposed to lead to.

Is there a way to make Obsidian automatically scroll to the correct header when following these anchor links?

Environment

Config

theme:
  name: material
  features:
    - navigation.instant
    - navigation.tabs
plugins:
  - search
markdown_extensions:
  - toc:
      permalink: "#"

Extract of notes

One file

...
- [Reference](access_inheritance.md#наследование-доступов-в-дереве-отделов) of something...

Another file

...

## Наследование доступов в дереве отделов
Some context...

The possible root cause

I’ve tried changing the language of the header, and while this temporarily fixed the issue, it isn’t a viable solution for me as I need to use Cyrillic.

If anyone has encountered this issue before and found a solution, I’d appreciate any insights you can share. If this turns out to be a bug, I’ll make sure to report it in the appropriate place.

Upvotes: 0

Views: 96

Answers (1)

Hamlet Sargsyan
Hamlet Sargsyan

Reputation: 1

Add this to mkdocs.yml

markdown_extensions:
  - toc:
      slugify: !!python/object/apply:pymdownx.slugs.slugify
        kwds:
          case: lower

it works for me

docs

Upvotes: 0

Related Questions