Use FEP-c16b: Formatting MFM functions #2

Open
ilja wants to merge 9 commits from ilja/mfm-parser:akkoma_use_fep-c16b_formatting_mfm_functions into akkoma

9 commits

Author SHA1 Message Date
ilja
418068793f Make parser FEP-c16b compliant
This is basically a rewrite of big parts of the parser, introducing a lot of breaking
changes.

The parser was originally written mostly as an exercise for myself and not really aimed
as-is for practical usage. An adapted version has been used in Akkoma, however, and
this pointed out serious flaws in how MFM was done in general on the fediverse. This
was discussed [on the Foundkey issue
tracker](FoundKeyGang/FoundKey#343) and a better way was
decided. At the time of writing, this is being formalised into
[FEP-c16b](https://codeberg.org/fediverse/fep/src/branch/main/fep/c16b/fep-c16b.md).
This commit rewrites this parser to be FEP-c16b compliant.

Previously, the parser had knowledge of the specific MFM functions. This was useful for
setting default attribute values and adding specific CSS. This is not the case any
more. The parser has no knowledge of specific MFM functions any more. It also had an
understanding of the concept of newlines, this isn't the case any more either. It only
does a "simple" translation from MFM function notation to FEP-c16b compliant HTML.

Because of this, we also don't add CSS any more. It's up to the software who uses this
HTML to decide what functions they want to provide and use the correct CSS. In practice
the CSS from this parser was never used in Akkoma, so it's not really a loss.
2024-08-10 20:13:48 +02:00
ilja
a5faf98ecd Revert "don't append styles"
This reverts commit 5e8723e54b.
2024-08-10 19:55:14 +02:00
ilja
9358f483af Revert "fix animation name"
This reverts commit 03901025b0.
2024-08-10 19:55:13 +02:00
ilja
69b8a27359 Revert "include class on spans"
This reverts commit 5054e0ba1e.
2024-08-10 19:55:11 +02:00
ilja
74f7f5964d Revert "use html generator for some things, fix x(x) styling"
This reverts commit 48d0da81e0.
2024-08-10 19:55:10 +02:00
ilja
61f503a1bf Revert "update git URL"
This reverts commit 51282dd6a7.
2024-08-10 19:55:08 +02:00
ilja
6a8445612b Revert "add classes to a bunch of things"
This reverts commit 912fba8115.
2024-08-10 19:55:07 +02:00
ilja
db79aa92dd Revert "Revert "use html generator for some things, fix x(x) styling""
This reverts commit f124e2812e.
2024-08-10 19:55:01 +02:00
ilja
5563d3ed9b Revert "revert usage of temple"
This reverts commit b21ab77540.
2024-08-10 19:54:30 +02:00