This is lovely. Really simple - this is a good thing.
I think I'm showing my ignorance as I didn't get why code blocks are surrounded by four back ticks (I thought Markdown used just one), but that's just me asking and certainly not complaining.
I think I'm showing my ignorance as I didn't get why code blocks are surrounded by four back ticks (I thought Markdown used just one), but that's just me asking and certainly not complaining.
I think one backtick is pre and three (with optional language is code with syntax highlighting)
Let me see if I can illustrate. On HN, backticks are meaningless, and code blocks require two space indents, so this should render as you would write the Markdown source:
Here would be `inline code` delimited with single backticks.
It translates to <code>inline code</code>.
Here would be a multiline code block.
It typically translates to <pre><code>Code is here.</code></pre>:
```
Code is here.
```
A multiline code block can also have a language name when it uses triple backticks, as in your example: ```swift
Swift code is here.
```
Note that there are many flavors of Markdown! I'm describing the one you appear to be using, which is similar to what's used on Stack Overflow and other Stack Exchange sites.