WIP: Use raw status text instead of html encoded text #88

Closed
nbsp wants to merge 1 commits from nbsp:status-text into develop
Contributor

do not merge
holy shit for the love of god do not merge

i wanna see just how much stuff this breaks, and if this could be deemed safe enough to use in production or if i should find a different solution for the mfm bug

characters like < and > are html-encoded in statuses meaning it's impossible to use <center> and <small> tags, as well as > quotes.

i could fix this in marked-mfm and just make it accept &lt;
i probably should do that, actually

i'm just not smart enough to decide if this is a remotely good solution or not and i need feedback

**do not merge holy shit for the love of god do not merge** i wanna see just how much stuff this breaks, and if this could be deemed safe enough to use in production or if i should find a different solution for the mfm bug characters like `<` and `>` are html-encoded in statuses meaning it's impossible to use `<center>` and `<small>` tags, as well as `> quotes`. i could fix this in marked-mfm and just make it accept `&lt;` i probably should do that, actually i'm just not smart enough to decide if this is a remotely good solution or not and i need feedback
nbsp added 1 commit 2022-07-31 19:42:22 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
cf72636562
Use raw status text instead of html encoded text

these are indeed escaped by the backend

what we could do is allow it in the scrubber -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/scrubbers/default.ex

which should pass <center> and <small> as expected

these are indeed escaped by the backend what we could do is allow it in the scrubber -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/scrubbers/default.ex which should pass `<center>` and `<small>` as expected
Author
Contributor

wouldn't that make them render as center and small in plaintext mode, too?

wouldn't that make them render as center and small in plaintext mode, too?
Author
Contributor

(though actually that's a downside of this method as well i should just do the &lt; thing)

(though actually that's a downside of this method as well i should just do the `&lt;` thing)

nope, plaintext doesn't get passed through the same scrubber

image

works though so there's that

nope, plaintext doesn't get passed through the same scrubber ![image](/attachments/64f992a2-d7d4-4627-a446-440d7bf6e315) works though so there's that
Author
Contributor

oh cool
and what about quotes?

> stuff

(also center is still broken you might notice that markdown formatting does not work inside a center tag, i fix that in a future marked-mfm version)

oh cool and what about quotes? ``` > stuff ``` (also center is still broken you might notice that markdown formatting does not work inside a center tag, i fix that in a future marked-mfm version)

ah it doesn't work inbound though

ok hm

ah it doesn't work inbound though ok hm

ok i found something that does work, one sec

ok i found something that _does_ work, one sec

branch small-center-mfm (BE) should somewhat work

> won't, because... honestly i don't know a safe way to do that right now, but i'll look tomorrow

branch small-center-mfm (BE) should somewhat work `>` won't, because... honestly i don't know a safe way to do that right now, but i'll look tomorrow
Author
Contributor

yeah this can be closed then

yeah this can be closed then
nbsp closed this pull request 2022-08-01 05:52:14 +00:00
nbsp deleted branch status-text 2022-08-01 05:52:19 +00:00
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

Pull request closed

Sign in to join this conversation.
No description provided.