MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / text

Method text

markdown_it/renderer.py:343–346  ·  view source on GitHub ↗
(
        self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType
    )

Source from the content-addressed store, hash-verified

341 )
342
343 def text(
344 self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType
345 ) -> str:
346 return escapeHtml(tokens[idx].content)
347
348 def html_block(
349 self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType

Callers

nothing calls this directly

Calls 1

escapeHtmlFunction · 0.85

Tested by

no test coverage detected