Skip to content

Add a soft break mode - #96

Open
freak4pc wants to merge 1 commit into
gonzalezreal:mainfrom
freak4pc:soft-break-mode
Open

freak4pc wants to merge 1 commit into
gonzalezreal:mainfrom
freak4pc:soft-break-mode

Conversation

@freak4pc

Copy link
Copy Markdown

Another small one :) Markdown renders a single newline inside a paragraph as a space, and there isn't a way to keep it as a line break like markdownSoftBreakMode does in MarkdownUI (gonzalezreal/swift-markdown-ui#342).

This adds .textual.softBreakMode(.lineBreak). The default stays .space, so nothing changes unless you opt in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant