politas_ has joined #spacedock
politas has quit [Ping timeout: 204 seconds]
politas_ is now known as politas
egg is now known as egg|zzz|egg
NathanKell|Twitch is now known as NathanKell
politas has quit [Ping timeout: 200 seconds]
NathanKell is now known as NathanKell|Twitch
politas has joined #spacedock
politas_ has joined #spacedock
politas has quit [Ping timeout: 204 seconds]
politas_ is now known as politas
politas has quit [Ping timeout: 186 seconds]
NathanKell|Twitch is now known as NathanKell|AFK
politas has joined #spacedock
politas has quit [Ping timeout: 200 seconds]
politas has joined #spacedock
politas has quit [Ping timeout: 201 seconds]
politas has joined #spacedock
NathanKell|AFK is now known as NathanKell
NathanKell is now known as NathanKell|Twitch
politas_ has joined #spacedock
politas has quit [Ping timeout: 204 seconds]
politas_ is now known as politas
politas has quit [Ping timeout: 383 seconds]
politas has joined #spacedock
politas has quit [Ping timeout: 204 seconds]
NathanKell|Twitch is now known as NathanKell
NathanKell is now known as NathanKell|AWAY
egg|zzz|egg is now known as egg|afk|egg
<SpaceDock> [SpaceDock] allista opened issue #178: Youtube links with underscore get messed up by markdown. https://git.io/vQe3g
<VITAS> Thomas any idea how to fix this without a lot of work? https://github.com/KSP-SpaceDock/SpaceDock/issues/178
<Qboid> [#178] title: Youtube links with underscore get messed up by markdown. | Description (What went wrong?):... | https://github.com/KSP-SpaceDock/SpaceDock/issues/178
<Lartza> Escape all underscores?
<Azander> or use the % cocde for it
Thomas|AWAY is now known as Thomas
<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)
<Thomas> Hmm, I took a look at the code :D Someone needs to rewrite this regex and we're good https://github.com/KSP-SpaceDock/SpaceDock/blob/master/KerbalStuff/kerbdown.py#L7
<VITAS> *sigh*
aradapilot_ has joined #spacedock
aradapilot has quit [Ping timeout: 201 seconds]
egg|afk|egg is now known as egg
Thomas is now known as Thomas|AWAY
Snoozee is now known as Majiir