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

Method softbreak

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

Source from the content-addressed store, hash-verified

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
338 ) -> str:
339 return (
340 ("<br />\n" if options.xhtmlOut else "<br>\n") if options.breaks else "\n"
341 )
342
343 def text(
344 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