MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / slugify_unicode

Function slugify_unicode

markdown/extensions/toc.py:49–51  ·  view source on GitHub ↗

Slugify a string, to make it URL friendly while preserving Unicode characters.

(value: str, separator: str)

Source from the content-addressed store, hash-verified

47
48
49def slugify_unicode(value: str, separator: str) -> str:
50 """ Slugify a string, to make it URL friendly while preserving Unicode characters. """
51 return slugify(value, separator, unicode=True)
52
53
54IDCOUNT_RE = re.compile(r'^(.*)_([0-9]+)$')

Callers

nothing calls this directly

Calls 1

slugifyFunction · 0.85

Tested by

no test coverage detected