
    )i                     "    S SK Jr  S\SS4S jrg)   )StateInlinestatereturnNc                    Sn[        U R                  5      nS=p4X2:  Ga  U R                  U   R                  S:  a  US-  nXR                  U   l        U R                  U   R                  S:  a  US-  nU R                  U   R                  S:X  au  US-   U:  al  U R                  US-      R                  S:X  aL  U R                  U   R
                  U R                  US-      R
                  -   U R                  US-      l        O&X4:w  a  U R                  U   U R                  U'   US-  nUS-  nX2:  a  GM  X4:w  a  U R                  US2	 gg)a  
Clean up tokens after emphasis and strikethrough postprocessing:
merge adjacent text nodes into one and re-calculate all token levels

This is necessary because initially emphasis delimiter markers (``*, _, ~``)
are treated as their own separate text tokens. Then emphasis rule either
leaves them as text (needed to merge with adjacent text) or turns them
into opening/closing tags (which messes up levels inside).
    r   textN)lentokensnestingleveltypecontent)r   r   maximumcurrlasts        g/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/markdown_it/rules_inline/fragments_join.pyfragments_joinr      sF    E%,,GOD
. <<%%)QJE#(T <<%%)QJE LL##v-q7"TAX&++v5 T"**U\\$(-C-K-KK LL"* |%*\\$%7T"AID	- .0 |LL     )state_inliner   r    r   r   <module>r      s    %' + ' $ ' r   