11 ms·
GitHub satanically messing with Markdown – changes 666 to DCLXVI
- ben_jones 7y agoThis seems like click bait to me - as if Github is censoring 666. But they aren't. It's just a really weird markdown bug having to do with the '.' which immediately follows the number. It's explained in the actual SO post. It's a cool post but it has nothing to do with censorship. Am I the only one who was misled?
- manojlds 7y agoNeither HN nor SO are clickbaity. The user asking the question is saying there's something creepy happening, not that GitHub is censoring. > which immediately follows the number. It's explained in the actual SO post. Yeah, which is why it is on HN, what's your point?
- dang 7y agoPlease don't respond rudely, even if another commenter is mistaken.
- dang 7y agoI think the title was just being light-hearted.
- laumars 7y agoI don't think the two are mutually exclusive. The author of that SO question likely picked a light hearted title intentionally because it was "clickbaity".
- tzs 7y agoReddit also messes with numbers followed by periods at the start of lines. It doesn't convert them to roman numerals, but it does infer from their presence that you are trying to make a numbered list, and it apparently also assumes that you have no idea how to count, so it renumbers the list for you. This regularly screws up posts in /r/chess. Someone might post something like this: 1.e4 e5 2.f4 exf4 3.Nf3 g5 4.Bc4 g4 5.O-O gxf3 6.Bxf7+ Kxf7 7.Qxf3 Bc5+ 8.Kh1 d6 9.c3 Nc6 10.d4 Nxd4 11.cxd4 Bxd4 12.Bxf4 Nf6 13.Bg5 Rg8 14.Qh5+ Rg6 and Reddit changes it to this: 1.e4 e5 2.f4 exf4 3.Nf3 g5 4.Bc4 g4 2.O-O gxf3 6.Bxf7+ Kxf7 7.Qxf3 Bc5+ 3.Kh1 d6 9.c3 Nc6 10.d4 Nxd4 11.cxd4 Bxd4 4.Bxf4 Nf6 13.Bg5 Rg8 14.Qh5+ Rg6
- brson 7y agoReddit also uses commonmark, plus some GitHub flavored markdown extensions, via the comrak library, plus some custom extensions. So Reddit markdown should mostly look like GitHub.
- sorenjan 7y agoReddit seems to use two different Markdown engines. I use old.reddit.com, and I've noticed that some users that use new Reddit post code in ``` blocks. That doesn't work on old Reddit where you need to put four spaces in front of every line for it to render as code, so it just looks messy. I'm guessing their WYSIWYG editor uses the ``` version.
- deleted 7y ago[deleted]
- crtasm 7y agoI only use old reddit and can post/view ```code blocks``` without issue.
- sorenjan 7y agoI went looking for some examples and found these two. The first [0] is someone that tried to post a ``` block, but it's not rendering properly on old Reddit. It does render ok as a code block on new Reddit in a private window. The second [1] is somebody that posted a ``` block but also indented all lines with four spaces. That renders as a code block with ``` lines before and after it on old Reddit, and as extra indented code on new Reddit. If you use RES you can look at the raw Markdown code for each comment using the source link. Maybe you´re thinking of inline code which use a single ` before and after the code content? Screenshots: https://imgur.com/a/TKSKoEB https://imgur.com/a/TKSKoEB [0] https://www.reddit.com/r/cpp/comments/e16s1m/what_is_wrong_with_stdregex/f8reo8f/ https://www.reddit.com/r/cpp/comments/e16s1m/what_is_wrong_w... [1] https://www.reddit.com/r/cpp/comments/e0fdp3/simple_timer_for_scheduling_tasks/f8dzizz/ https://www.reddit.com/r/cpp/comments/e0fdp3/simple_timer_fo...
- alricb 7y agoIt should probably change it to χξϛ (https://en.wikipedia.org/wiki/Number_of_the_Beast https://en.wikipedia.org/wiki/Number_of_the_Beast)
- misterdoubt 7y agoKind of disappointing to see that level of testing failure. A leap to assume there is something specifically strange about `666` without even trying `665`...
- bfred_it 7y agoWhich link are you more likely to click on? - GitHub satanically messing with Markdown - changes 666 to DCLXVI - GitHub changes numbers to Roman numerals in lists I’d call it functional clickbait.
- Animats 7y agoCan we have BBCode back? That was better.
- laumars 7y agoBetter for some things / worse for others. It was much easier to write parsers for though. Most of the BBCode tags could be rendered with simple regex substitutions.
- contravariant 7y ago>It was much easier to write parsers for though. Most of the BBCode tags could be rendered with simple regex substitutions. Nevermind. Let's not bring BBCode back.
- laumars 7y agoOn the whole I'd agree. When markdown is done right it's pretty awesome. However I'd still take BBcode over buggy half implemented markdown parsers like the one we have on HN. At least [i] is a less common token than * -- which leads to no end of edits when I've absent-mindedly emphasised something that should have been bullet pointed. ...but yes, I do agree that markdown is definitely better when it's done right.
- CarlRJ 7y agoOn second thought, let us not go to Camelot. It is a silly place.
- brohee 7y agoSeriously... https://blog.codinghorror.com/regular-expressions-now-you-have-two-problems/ https://blog.codinghorror.com/regular-expressions-now-you-ha.... And this piece of computer trivia archeology http://regex.info/blog/2006-09-15/247 http://regex.info/blog/2006-09-15/247
- laumars 7y ago
- mike_hock 7y agoSo they change enumeration lists to Roman numerals. That's it, right?
- leoc 7y agoI don't believe it. Apple bending the knee to the Chinese Communist Party was bad enough: now MS is sucking up to the Roman Empire! https://en.wikipedia.org/wiki/Number_of_the_Beast#Nero https://en.wikipedia.org/wiki/Number_of_the_Beast#Nero Don't say anything critical of the Julio-Claudians on GitHub.
- CHsurfer 7y agoIt's a nice touch that the number of upvotes (09:10 Standard European Time)is also '666'
- tumetab1 7y agoCan get an (2017) on the title?
- aembleton 7y agoIn the CSS for github [1], there is this ol ol, ul ol { list-style-type: lower-roman; } I think that will result in all items starting with numbers in lists using Roman numerals. 1. https://github.githubassets.com/assets/frameworks-481a47a96965f6706fb41bae0d14b09a.css https://github.githubassets.com/assets/frameworks-481a47a969...
- deleted 7y ago[deleted]