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

Method hardbreak

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

Source from the content-addressed store, hash-verified

329 return self.renderToken(tokens, idx, options, env)
330
331 def hardbreak(
332 self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType
333 ) -> str:
334 return "<br />\n" if options.xhtmlOut else "<br>\n"
335
336 def softbreak(
337 self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected