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

Method linkText

markdown/treeprocessors.py:190–206  ·  view source on GitHub ↗
(text: str | None)

Source from the content-addressed store, hash-verified

188
189 """
190 def linkText(text: str | None) -> None:
191 if text:
192 if result:
193 if result[-1][0].tail:
194 result[-1][0].tail += text
195 else:
196 result[-1][0].tail = text
197 elif not isText:
198 if parent.tail:
199 parent.tail += text
200 else:
201 parent.tail = text
202 else:
203 if parent.text:
204 parent.text += text
205 else:
206 parent.text = text
207 result = []
208 strartIndex = 0
209 while data:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected