
    F j3                    >    S SK Jr  SSKJrJr  SS jrS	S jrS
S jrg)    )annotations   )	DelimiterStateInlinec                0   U R                   nU R                  U   nU(       a  gUS:w  a  gU R                  U R                   S5      nUR                  nU R                  R
                  R                  SS5      nU(       a  US:  a  gUS:  a<  U R                  SSS	5      nX5-  Ul        U =R                   UR                  -  sl         gU R                  SSS	5      nX5-  Ul        U R                  R                  [        [        U5      S	[        U R                  5      S-
  S
UR                  UR                   S95        OUS:  a  gUS-  (       a  U R                  SSS	5      nX7l        US-  nS	nX:  a  U R                  SSS	5      nX3-   Ul        U R                  R                  [        [        U5      S	[        U R                  5      S-
  S
UR                  UR                   S95        US-  nX:  a  M  U =R                   UR                  -  sl         g)a'  Insert each marker as a separate text token, and add it to delimiter list.

When the ``strikethrough_single_tilde`` option is enabled on the
``MarkdownIt`` instance, single ``~`` delimiters are also accepted and
runs of three or more tildes are rejected (matching GitHub's rendering behaviour).
F~Tstrikethrough_single_tilder      text r   )markerlengthtokenendopenclose)possrc
scanDelimsr   mdoptionsgetpushcontent
delimitersappendr   ordlentokenscan_open	can_close)	statesilentstartchscannedr   single_tilder   is	            w/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/markdown_it/rules_inline/strikethrough.pytokenizer+      s    IIE	5	B	Syuyy$/G^^F88##''(DeLLA:A: JJvr1-EKEMII'I

62q)2w%,,'!+%%''		
 A:A:JJvr1-EMaKFjJJvr1-EGEM##r7ell+a/ ))!++	 FA j  
III    c                   / n[        U5      nU R                  R                  R                  SS5      nSnXS:  Ga  X   nUR                  S:w  a  US-  nM!  UR
                  S:X  a  US-  nM8  XR
                     nU(       aR  U R                  UR                     R                  nU R                  UR                     R                  n	X:w  a  US-  nM  U R                  UR                     R                  n
U R                  UR                     nSUl	        SUl
        SUl        Xl        S	Ul        U R                  UR                     nS
Ul	        SUl
        SUl        Xl        S	Ul        U R                  UR                  S-
     R                  S:X  aH  U R                  UR                  S-
     R                  S:X  a  UR                  UR                  S-
  5        US-  nXS:  a  GM  U(       a  UR                  5       nUS-   nU[        U R                  5      :  aZ  U R                  U   R                  S
:X  a=  US-  nU[        U R                  5      :  a  U R                  U   R                  S
:X  a  M=  US-  nX\:w  a9  U R                  U   nU R                  U   U R                  U'   XR                  U'   U(       a  M  g g )Nr	   Fr   ~   r   r   s_opensr   s_closer   r   )r   r   r   r   r   r   r    r   r   typetagnestingmarkupr   pop)r#   r   loneMarkersmaximumr(   r)   
startDelimendDelimopener_contentcloser_contentr5   r   js                r*   _postProcessr>   U   sg   K*oG88##''(DeLL	A
+]
$FA>>RFAnn- "\\**:*:;CCN"\\(..9AAN/Qj../77Z--.
	X^^,
	 LL!+,11V;X^^a/088C?x~~12	QY +h OOE3u||$$5<<?+?+?9+LFA 3u||$$5<<?+?+?9+L 	
Q6LLOE#ll1oELLO#LLO +r,   c                    U R                   n[        U R                   5      n[        X R                  5        SnX2:  a-   X   nU(       a  SU;   a  [        XS   5        US-  nX2:  a  M,  gg! [         a     Nf = f)z>Walk through delimiter list and replace text tokens with tags.r   r   r   N)tokens_metar   r>   r   
IndexError)r#   r@   r8   curr	curr_metas        r*   postProcessrD      s    ##K%##$G(()D
.	=#)I \Y6Ul$;<	 .  		s   A, ,
A98A9N)r#   r   r$   boolreturnrE   )r#   r   r   zlist[Delimiter]rF   None)r#   r   rF   rG   )
__future__r   state_inliner   r   r+   r>   rD    r,   r*   <module>rK      s    " 0K\F$Rr,   