kibigo! 09cbd6c65e Use a tree‐based approach for adv. text formatting
Sanitizing HTML/Markdown means parsing the content into an HTML tree
under‐the‐hood anyway, and it is more accurate to do mention/hashtag
replacement on the text nodes in that tree than it is to try to hack it
in with regexes et cetera.

This undoes the overrides of `#entities` and `#rewrite` on
`AdvancedTextFormatter` but also stops using them, instead keeping
track of the parsed Nokogiri tree itself and using that in the `#to_s`
method.

Internally, this tree uses `<mastodon-entity>` nodes to keep track of
hashtags, links, and mentions. Sanitization is moved to the beginning,
so it should be known that these do not appear in the input.
2022-11-08 21:34:16 -08:00
2021-03-24 10:44:31 +01:00
2022-11-05 22:57:58 +01:00
2022-03-15 08:16:45 +01:00
2021-11-23 00:15:31 +01:00
2020-04-27 17:19:53 +02:00
2022-11-06 16:13:53 +01:00

Mastodon Glitch Edition

Now with automated deploys!

Build Status Code Climate

So here's the deal: we all work on this code, and anyone who uses that does so absolutely at their own risk. can you dig it?

Description
A glitchy but lovable microblogging server
Readme AGPL-3.0 420 MiB
Languages
Ruby 49%
TypeScript 23.8%
JavaScript 17.2%
SCSS 6.5%
Haml 3.2%
Other 0.3%