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

Function slugify_unicode

markdown/extensions/toc.py:48–50  ·  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

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

Callers

nothing calls this directly

Calls 1

slugifyFunction · 0.85

Tested by

no test coverage detected