Code Fence
Basic
One line, no props specified
``` aws configure list ```
aws configure list
Multiple lines, no props specified
``` [compute] region = us-east1 zone = us-east1-b [core] account = yirenlu92@gmail.com disable_usage_reporting = True project = example-project-name ```
[compute] region = us-east1 zone = us-east1-b [core] account = yirenlu92@gmail.com disable_usage_reporting = True project = example-project-name
Language specified
```javascript let x = 5 + 1 console.log(`x is ${x}`) ```
javascript
let x = 5 + 1 console.log(`x is ${x}`)
languges 'shell', 'sh' and 'bash' hide header by default
```shell rm -rf node_modules ```
rm -rf node_modules
Force header to show up
```shell {% showHeader=true %} rm -rf node_modules ```
shell
rm -rf node_modules
Specify a title (will display instead language)
```shell {% title="Run this command" showHeader=true %} rm -rf node_modules ```
Run this command
rm -rf node_modules
Force header to hide
```elixir {% showHeader=false %} IO.puts("Hello world from Elixir") ```
IO.puts("Hello world from Elixir")