Skip to content
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

Text view with markdown render issues #1539

Open
bcardarella opened this issue Feb 22, 2025 · 3 comments
Open

Text view with markdown render issues #1539

bcardarella opened this issue Feb 22, 2025 · 3 comments

Comments

@bcardarella
Copy link
Collaborator

I'm not sure how best to explain this so I'll just leave a video:

Clipboard-20250222-132519-807.mp4

You can see that I have a Text with and without markdown attr set. Both views render. Then I remove the non-markdown one. Now the markdown view doesn't render.

@bcardarella
Copy link
Collaborator Author

If I put content into the <Text markdown={markdown}>foo</Text> it properly renders the markdown value.

@carson-katri
Copy link
Contributor

SwiftUI only supports inline markdown like bold and italic styles, and links.

@bcardarella
Copy link
Collaborator Author

How SwiftUI renders the markdown isn't the issue. What's happening here is that the text view doesn't render at all if the markup is just <Text markdown={markdown}/>

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

No branches or pull requests

2 participants