I'm sure this is an accident, but I've recently found out that you can "label" code blocks in a really nice way by using inline code in a level 4 (####
) header:
#### `Main.hs`
```haskell
module Main where
main :: IO ()
main = putStrLn "Hello World!"
```
produces
Main.hs
module Main where main :: IO () main = putStrLn "Hello World!"
This is great for situations where you might need to describe multiple files. However, (and this why I think this is probably an accident), there's a little "oopsie" in the upper-left corner, where the label and code block meet. (It's even more noticeable on the normal white background.)
I think these code blocks would look a lot more polished if this could instead produce a straight edge.
<pre>
blocks hasborder-radius: 3px
while inline<code>
doesn't.