[bug] Upstream tracking issue: Bug in EarmarkParser causes newlines to not show in MFM posts when the post uses html tags #829
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#829
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
No response
Version
3.13.2-616-g90adb3cf (current develop, but with #823 also added)
PostgreSQL version
N/A
What were you trying to do?
See upstream issue https://github.com/RobertDober/earmark_parser/issues/158
In Akkoma this results in the following problem:
Remote instance sends MFM
What did you expect to happen?
We expect this to become
What actually happened?
But it actually becomes
Running yourself (in Akkoma folder, run
iex -S mix
oriex -S mix phx.server
)Logs
No response
Severity
I can manage
Have you searched for this issue?
[bug] upstream tracking issue: MFM Bug in EarmarkParser causes newlines to not show in MFM posts when the post uses html tagsto [bug] Upstream tracking issue: Bug in EarmarkParser causes newlines to not show in MFM posts when the post uses html tagsIt's documented behaviour, but they do want this behaviour so a fix may come eventually. Tags need to be in their own line. See https://daringfireball.net/projects/markdown/syntax#html
Since they need to be on their own line, I was thinking of maybe working around this problem by first prettifying the html for MFM (for Markdown this isn't needed because we don't re-parse and therefor it doesn't matter that different instances have different behaviour), but it just gives other problems like changing preceding spaces. Generally speaking, preceding spaces don't matter, but they do matter for us.
Maybe we could figure something out ourselves, but then it starts to become very hacky for something which I already consider a work-around.
I'll keep the issue open, but I fear the real fix will be to get better HTML content from all *key software (which is not something we control).