<Thomas>
VITAS: Every time I get an email from the SpaceDock repository, I feel like a dinosaur attacks me :P
<Thomas>
VITAS: And no, I have no idea how to fix this easily, because we would have to fork flask markdown for that and meh
<VITAS>
yes but is there a workarround without markdown mod?
<Lartza>
Why do I highly doubt you need to fork anything :S
<Thomas>
Well, we could add our own regex processing thingy that escapes them
<Thomas>
Lartza: Well, if we would want to do it in a non-ugly way :P
<Lartza>
I don't think escaping underscores would be that ugly
<Lartza>
Not sure how the registering of extensions works on flask-markdown
<Lartza>
So that's two non-ugly workarounds
<Lartza>
But dunno :P
<Thomas>
Yeah, I don't know exactly too
<VITAS>
i wos thinking more along the lines of something a user could write in markdown to prevent this
<VITAS>
like Lartza said with escaping
<Lartza>
Well that's already doable, they can escape underscores manually
<Lartza>
But trusting modders to do that? :P
<VITAS>
something that tells markdown to take the _ litteral
<VITAS>
i dont but if they dont they can complain and get that answer
<VITAS>
the current code is about "working" not luxury :D
<Lartza>
def edit_description(title, text): text = text.replace('_', '\_')
<Lartza>
:P
<VITAS>
not end user
<VITAS>
and to wide of a scope
<VITAS>
if i would do it in the code i would look for http(s):// and tell it to not parse any char until i hit a space or a ]
<VITAS>
and maybe its fixed in newer markdown libs but i want to prevent changing anything about the code
<Lartza>
:D
<VITAS>
btw: ive to move the backend from the uni to the hetzner for 2 weeks at the end of the month because ive to power down all servers (theyre replacing the airconditioning)