-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple line breaks in markdown or using Text()
#91
Comments
Not sure if you have tried this but try end lines with two or more spaces. |
Thanks for your comment but it doesn't work either. I have "Automatically trimming trailing whitespace" in Xcode enabled but turning it off didn't work either. |
There is a simple workaround. Xcode's markdown parser supports inline HTML. Add Text(markdown: """
Sollicitudin Etiam<br>
Etiam Sem 42<br>
12345 Purus
""") |
Awesome, it works. Thanks @cpah I wonder if there is a reason why this does not work out of the box and what the best approach would be to make it work. Either on Swift Markdown parser level or even Ignite. |
It seems that line breaks are ignored in markdown. This is all rendered inline:
Also it would be great to have simple line breaks that don't introduce space between two lines to work, e.g. by ending a line with a backslash. I couldn't achieve this with
Text
either, e.g. by putting multiple text elements in aGroup
. It would be great for something like displaying an address.The text was updated successfully, but these errors were encountered: