stacker.news icon indicating copy to clipboard operation
stacker.news copied to clipboard

Properly render Code in Social Preview image (aka Twitter Card Summary)

Open cointastical opened this issue 3 years ago • 1 comments

The Twitter card capture is not rendering properly when a Discussion post has Code in it. It is ignoring CR/LF, if nothing else.

Example Post:

Screenshot at 2022-06-15 09-03-59 https://stacker.news/items/36571

Renders as: Twitter card for item 36571

cointastical avatar Jun 15 '22 14:06 cointastical

There is a similar, closed issue, Issue #99, but I don't think this is closely related.

cointastical avatar Jun 15 '22 14:06 cointastical