trunks-social / trunks-public

Issue tracker project
44 stars 3 forks source link

Broken markdown formatting for some cases #226

Closed Decad3nce closed 1 year ago

Decad3nce commented 1 year ago

https://trunks.social/status/mstdn.social/@tcely@fosstodon.org/110648464338163121

<p><span class="h-card"><a href="https://mstdn.social/@trunksapp" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>trunksapp</span></a></span> Here's a condensed example of what I saw in the above posts.</p><p>~strikethrough~ __bold__ **bold** _italic_ *italic*<br>_italic &amp; **bold** ~combined~_</p><p>##### formatting failures</p><p>* Word is that Elon has been trying to move *everything* off so he doesn't have to pay the reported $1 **BILLION** bill.</p><p>- Word is that Elon has been trying to move _everything_ off so he doesn't have to pay the reported $1 __BILLION__ bill.</p><p>_ ~strikethrough~</p>
tcely commented 1 year ago

Worked

~strikethrough~ __bold__ **bold** _italic_ *italic*
_italic & **bold** ~combined~_

##### formatting failures

- Word is that Elon has been trying to move _everything_ off so he doesn't have to pay the reported $1 __BILLION__ bill.

Failed

* Word is that Elon has been trying to move *everything* off so he doesn't have to pay the reported $1 **BILLION** bill.

_ ~strikethrough~

There were other ways to make it fail, but I think it needs to not count _ or * followed by a space as formatting to resolve this.

It might be worth using a library instead.

https://fluttergems.dev/markdown/