%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/markdown/extensions/__pycache__/ |
| Current File : //lib/python3/dist-packages/markdown/extensions/__pycache__/toc.cpython-312.pyc |
�
���e�; � �6 � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZmZ ddlm
Z
dd lZdd lZdd lZdd lmc mZ dd
lmZmZmZmZ erddlmZ ddd�Zdd
�Z ej: d� Zdd�Zdd�Z ddd�Z!d d�Z"d� Z# G d� de� Z$ G d� de� Z%d� Z&y )!z�
Add table of contents support to Python-Markdown.
See the [documentation](https://Python-Markdown.github.io/extensions/toc)
for details.
� )�annotations� )� Extension� )�
Treeprocessor)�code_escape�parseBoolValue�AMP_SUBSTITUTE�HTML_PLACEHOLDER_RE�AtomicString)�UnescapeTreeprocessorN)�
TYPE_CHECKING�Any�Iterator�
MutableSet)�Markdownc �& � |s7t j d| � } | j dd� j d� } t j
dd| � j
� j � } t j
dj |� || � S )z, Slugify a string, to make it URL friendly. �NFKD�ascii�ignorez[^\w\s-]� z[{}\s]+) �unicodedata� normalize�encode�decode�re�sub�strip�lower�format)�value� separator�unicodes �9/usr/lib/python3/dist-packages/markdown/extensions/toc.py�slugifyr% $ st � ���%�%�f�e�4�����W�h�/�6�6�w�?���F�F�;��E�*�0�0�2�8�8�:�E�
�6�6�*�#�#�I�.� �5�A�A� c � � t | |d�� S )zP Slugify a string, to make it URL friendly while preserving Unicode characters. T)r# )r% )r! r"