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

Method code_inline

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

Source from the content-addressed store, hash-verified

230 return result
231
232 def code_inline(
233 self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType
234 ) -> str:
235 token = tokens[idx]
236 return (
237 "<code"
238 + self.renderAttrs(token)
239 + ">"
240 + escapeHtml(tokens[idx].content)
241 + "</code>"
242 )
243
244 def code_block(
245 self,

Callers

nothing calls this directly

Calls 2

renderAttrsMethod · 0.95
escapeHtmlFunction · 0.85

Tested by

no test coverage detected