logoalt Hacker News

epagetoday at 2:11 PM1 replyview on HN

> In fact, a code fence need not consist of exactly three backticks or tildes. Any number of backticks or tildes is allowed, as long as that number is at least three

Unfortunately, some markdown implementations don't handle this well. We were looking at using code-fence like syntax in Rust and we were worried about people knowing how to embed it in markdown code fences but bad implementations was the ultimate deal breaker. We switched to `---` instead, making basic cases look like yaml stream separators which are used for frontmatter.


Replies

bityardtoday at 3:57 PM

`---` is already used in Markdown for horizontal rules?

show 2 replies