Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on feddit.org
summit·SummitbyUndaunted

Hastags accidentally parsed as markdown headlines

If someone uses hashtags in posts or comments, they are interpreted as headline. Here's a screenshot and a link of an example:

https://lemm.ee/post/58465311

My suggestion would be to only parse it as a headline, if between the # and the next word is a whitespace. I've seen it that way in other markdown parsers and I think that works well.

Edit: Typo

View original on feddit.org
13

3 replies

lemmy.ml

I think this is fixed in the latest version already

2

That fix was to post titles only. Unfortunately that fix will not affect the issue reported here.

1

Super easy fix. The client actually needed special logic to produce the bug described here. I added this special logic a long time ago because I noticed a lot of people omit the space when they format headers in markdown resulting in misformatted headings however it's technically the fault of the author and not the app. It's easier to have the app not correct for this.

1

You reached the end

Hastags accidentally parsed as markdown headlines | Spyke