4 ms·
Reddit also uses commonmark, plus some GitHub flavored markdown extensions, via the comrak library, plus some custom extensions. So Reddit markdown should mostl
by brson 7y ago
Reddit 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...
- crtasm 7y agoYou're correct, I was thinking of `inline code`. The old Reddit formatting wiki page doesn't mention ``` now I look, there's a note on new Reddit about sticking to spaces for compatability: https://www.reddit.com/wiki/markdown https://www.reddit.com/wiki/markdown Would be nice if they fixed it indeed.