You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Markdown, a newline in a paragraph is a "soft break", unless it is preceded by two spaces or a backslash to make it a "hard break". soft breaks are rendered as spaces; hard breaks are rendered as line breaks.
MarkdownIt has a breaks=True option that renders softbreaks as a line break. I'd like that option on rich.markdown.Markdown too.
i'm thinking this is an easy "\n" if self.breaks else " " here:
in Markdown, a newline in a paragraph is a "soft break", unless it is preceded by two spaces or a backslash to make it a "hard break". soft breaks are rendered as spaces; hard breaks are rendered as line breaks.
MarkdownIt
has abreaks=True
option that renders softbreaks as a line break. I'd like that option onrich.markdown.Markdown
too.i'm thinking this is an easy
"\n" if self.breaks else " "
here:rich/rich/markdown.py
Lines 613 to 616 in 349042f
The text was updated successfully, but these errors were encountered: