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
I am having an issue with blockquote (>), which does not render when I use NSAttributedString
Please help prevent duplicate issues before submitting a new one:
I've searched other open/closed issues for duplicates before opening up this new issue.
Report
What did you do?
privateletmarkdownString=""" The quote > Somewhere, something incredible is waiting to be known has been ascribed to Carl Sagan."""letdown=Down(markdownString: markdownString)letattrString=try! down.toAttributedString()
textView.attributedText = attrString
What did you expect to happen?
I expect to see something like this:
What happened instead?
However, I see this:
The text was updated successfully, but these errors were encountered:
I spoke too soon, and missed that you were rendering an attributed string.
I think for this scenario you'd need to render the blockquote yourself by parsing the attributed string styling (i.e. https://stackoverflow.com/a/46164623/308315). Attributed strings aren't well handled in terms of what happens under-the-hood since it's not converting the HTML string properly. This is more an issue you'd have to file with Apple
e.g. the rendered HTML is
<p>The quote</p>\n<blockquote>\n<p>Somewhere, something incredible is waiting to be known</p>\n</blockquote>\n<p>has been ascribed to Carl Sagan.</p>\n
and attributed string's view doesn't render the blockquote.
Hello 👋,
I am having an issue with
blockquote
(>), which does not render when I useNSAttributedString
Please help prevent duplicate issues before submitting a new one:
Report
What did you do?
What did you expect to happen?
I expect to see something like this:
What happened instead?
However, I see this:
The text was updated successfully, but these errors were encountered: