bonfire-app icon indicating copy to clipboard operation
bonfire-app copied to clipboard

issues with hashtags

Open mayel opened this issue 2 years ago • 1 comments

  • [ ] hashtag at start of post not detected
  • [ ] hashtag should support _underscores

mayel avatar Jan 15 '24 13:01 mayel

seems a milkdown.JS issue as this is what the backend receives: "\\#test #hash\\_tag\n" when you write #test #hash_tag

I could do some find/replace on server, like we already had to do for links and mentions:

      |> Regex.replace(~r/<(http[^>]+)>/U, ..., " \\1 ")
      |> Regex.replace(~r/@<([^>]+)>/U, ..., " @\\1 ")

but wonder if we can configure milkdown do give us what is actually written / the plain markdown, so that this doesn't become too a messy (and likely incomplete) pile of workaround (which wouldn't apply if another wysiwyg editor or plaintext is used)

mayel avatar Feb 26 '24 16:02 mayel

fixed

ivanminutillo avatar Jun 25 '24 11:06 ivanminutillo