I wrote about the supported syntax here: https://collectednotes.com/blog/a-tour-of-the-markdown-synta...
I think one backtick is pre and three (with optional language is code with syntax highlighting)
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.