diaspora/spec/lib/diaspora
Benjamin Neff 536c96f217
Escape mentions before parsing message with markdown
Usernames that contained underscores were parsed by markdown first. This
broke the diaspora IDs and also added weird html at places where it
wasn't needed. Escaping them before sending the message through the
markdown parser fixes this issue.

As underscores are the only allowed character that can be used for
markdown that is also allowed inside a diaspora ID, this escaping can be
kept pretty simple.

This only fixes it for the mobile UI at the moment, for the desktop UI
it's probably better to fix it in markdown-it.

Related to #7975
2022-10-06 00:45:50 +02:00
..
exporter Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
federated Fix some keyword args for ruby 3 compatibility 2022-07-21 01:25:53 +02:00
federation Merge branch 'next-minor' into develop 2022-06-29 13:28:02 +02:00
fetcher post fetch: update spec to test reshares data too 2022-09-06 10:22:08 +03:00
camo_spec.rb Ignore invalid URLs for camo 2018-11-04 03:06:21 +01:00
exporter_spec.rb Update factory_girl to factory_bot 2021-04-11 01:51:38 +02:00
markdownify_email_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
markdownify_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
mentionable_spec.rb Merge branch 'next-minor' into develop 2022-07-16 04:44:59 +02:00
message_renderer_spec.rb Escape mentions before parsing message with markdown 2022-10-06 00:45:50 +02:00
shareable_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00
taggable_spec.rb Add # frozen_string_literal: true to all files 2017-09-17 19:29:15 +02:00