*sings the Jeopardy theme twenty times while waiting for webpacker to finish recompiling*

WOOO. Good news: IT WORKED

Bad news: I don't know why trying to style it to italics didn't. Does Roboto not have italics, is that the problem?

tootplanet.space/media/Vl2B7Yr

No, it appears to... wait

wait a sec

oh my god I was using "italics" instead of "italic"

@noelle more specifically, I haven't figured out *where* it formats for federation >.>

@InspectorCaracal @noelle given the whole thing with spinning text i think mastodon now just strips all html and there's no more fun to be had in that

@squirrel @noelle I went into the database to see how things were stored and such and federated posts all have the formatting in place. It does some post-processing on it to clean it up before view, but the statuses all have the <p> and <a> etc. tags in them.

@InspectorCaracal @noelle yeah but given the spinning text stuff that happened and got patched out i'm pretty sure you can't do custom stuff anymore

@squirrel @noelle stuff like the spinning text is handled by this function:

def reformat(html)
sanitize(html, Sanitize::Config::MASTODON_STRICT)
end

I haven't looked into what that strips, yet, but I don't believe it strips classes, and classes are all you need for this.

@InspectorCaracal @noelle yeah but no custom theme classes? classes that other instances will have?

@InspectorCaracal @noelle oh no i just mean like, as long as you didn't /write new classes/

then yes it should work

@squirrel @noelle I think you'd have to use existing classes if you want it to LOOK right on the remote servers, since the stylesheet doesn't federate >.> but it could probably be any of them

like you could theoretically style a post to the light theme

@noelle @squirrel I couldn't figure out how to do it in javascript but the formatter.rb basically does exactly that

@squirrel @noelle currently it only applies to local toots but theoretically I could add it to remote toots by inserting rp_format(html) at line... 14, before the emoji processing

@noelle @squirrel and then matching local style to the markdown tags is just a matter of what regex checks you do in the formatting function

@InspectorCaracal @noelle looking through the code it preserves classes starting with 'h-' among others and the only one of those i can find being used in mastodon is 'h-card' and it actually does not do anything, there are no calls for it other than in the code that adds it to a status in formatter.rb

@InspectorCaracal @noelle i feel like a lot of this code just got snowballed from previous versions and h-card is just a rollover from older versions and idk

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!