if2dZddlmZddlmZ ddlmZnc#e$r[ddlZddlZGddej ej Z ej dxej d<Zejxe_Ze e_ YnwxYw ddlZdd lmZejd kr ed n#e$rZed edZ[wwxYwd ZGddeZdS)aj A parser for CommonMark Markdown text using `recommonmark`__. __ https://pypi.org/project/recommonmark/ .. important:: This module is provisional * The "recommonmark" package is unmaintained and deprecated. This wrapper module will be removed in a future Docutils version. * The API is not settled and may change with any minor Docutils version. ) Component)nodes)addnodesNceZdZdS) pending_xrefN)__name__ __module__ __qualname__/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/docutils/parsers/recommonmark_wrapper.pyrr&sr rsphinx)CommonMarkParserz0.6.0z^The installed version of "recommonmark" is too old. Update with "pip install -U recommonmark".zeParsing "recommonmark" Markdown flavour requires the package https://pypi.org/project/recommonmark.cNt|tjtjfSN) isinstancerliteral literal_block)nodes r is_literalr:s dU]E,?@ A AAr c8eZdZdZdZ dZdZdZdZdZ dZ d S) ParserzMarkDown parser based on recommonmark. This parser is provisional: the API is not settled and may change with any minor Docutils version. ) recommonmark commonmarkmarkdownmdzrecommonmark parser)parsersc*tj|Sr)rget_transforms)selfs r rzParser.get_transformsJs'---r czt|dD]Z\}}t||jjkr8|jd|dzz}||dS[ tj |||nW#t$rJ}|jj r||jd|z}||Yd}~nd}~wwxYw| tjD]}|j}d}|dzt|krt!||tjrgt!||dztjrDtj||||dzz||<|||_n|dz }|dzt|k| t(D]'}d|dvr|dd(| tjD]/}d |jvr$|d|d |d =0|jjsW| tjD]7}|jd } |j|| 8| t6jD]W}|jd} d | vr)tj| | d <|j|| XdS) z9Use the upstream parser and clean up afterwards.  z&Line %d exceeds the line-length-limit.Nz2Parsing with "recommonmark" returned the error: %srcodeclasseslanguagezRaw content disabled.name) enumeratesplitlensettingsline_length_limitreportererrorappendrparse Exception tracebackfindallr TextElementchildrenrTextpopparentrr attributes raw_enabledrawwarningreplacerrfully_normalize_nameastext) r inputstringdocumentiliner.errrr5r< references r r0z Parser.parseMsu!!2!24!8!899  GAt4yy8,>>> )//4=4D4D4F4F%H%H &! K  i 0 0 0 0  1 1s?B C* AC%%C*cdS)zyDummy function to prevent spurious warnings. cf. https://github.com/readthedocs/recommonmark/issues/177 Nr )r rs r visit_documentzParser.visit_documents r ch|jtj|jdSr) current_noder/rr6r)r mdnodes r visit_textzParser.visit_texts+   FN!;!;<<<<sq AI'*N"....:1:1:1x   =====r r)rLdocutilsrrrr ImportErrorsystypesInlineElementr ModuleTypemodulesSimpleNamespacerrecommonmark.parserr __version__rDrrr r r r[s   ) ) ) )JJJLLL88888u|U]888%5U%5h%?%??CKF!6!6!8!88FOh(H ) I444444'))kHII I*  + ;   BBBU=U=U=U=U= U=U=U=U=U=s(AA76A7; BB2! B--B2