Codeblocks

Sometimes we want to show users a code snippet or just don't want it to be interpreted as Markdown.

Inline Code

Example Input

By calling the function `myFunction(a, b, c);`, we can get our answer.

Example Output

By calling the function myFunction(a, b, c); , we can get our answer.

Code Block

Example Input

In order to use Ammonite's templates, you must specify
a code block that is prefixed with `ammonite_template`.

```ammonite_template
{
	"version": 1,
	"template": "/ammonite/header_with_anchor",
	"data": {}
}
```

Example Output

In order to use Ammonite's templates, you must specify a code block that is prefixed with ammonite_template.

ammonite_template
{
	"version": 1,
	"template": "/ammonite/header_with_anchor",
	"data": {}
}

Certain characters can't be written normally because they conflict with the Markdown syntax. In order to fix this, we can escape these characters using \

Character Name
\ backslash
` backtick
* asterisk
_ underscore
{ } curly braces
[ ] brackets
< > angle brackets
( ) parentheses
# pound sign
+ plus sign
- minus sign
. dot
! exclamation mark
| pipe

Example Input

```
const myVariable = \`${myOtherVariable}\\n\`;
```

Example Output

const myVariable = `${myOtherVariable}\n`;