Skip to content

line continuationsยค

line continuations can connect markdown and python blocks separated by whitespace


markdown blocks continue to code blocks when ending with line continuations, whitespace is captured

a markdown paragraph can continues\


        .upper()
"""a markdown paragraph can continues"""\
\
        \
.upper()

code block continuations implicitly connect markdown blocks

    foo =\

this is a string
foo =\
\
"""this is a string""";

continuations in the middle of markdown or code are translated explicitly

a markdown paragraph can continues\
into this

    x = \
    42
"""a markdown paragraph can continues\
into this"""

x = \
42