Markdown - Tips


backticks inside inline code block

https://meta.stackexchange.com/questions/82718

surround inline code block with double backticks and extra spaces:

`` `IO.puts("Hello world")` ``

(how to) escape Liquid template tags in Jekyll

  1. https://stackoverflow.com/questions/24102498
  2. http://sarathlal.com/escape-liquid-tag-in-jekyll-posts
  3. https://stackoverflow.com/questions/3426182

wrap code block with {% raw %} and {% endraw %} tags:

{% raw %}
```html
<link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css">
```
{% endraw %}

it’s also possible to wrap arbitrary text with {% raw %} and {% endraw %} tags:

{% raw %}
both {% if ... %} and {% endif %} statements indent the next line.
{% endraw %}

escape left angle bracket only

it’s not required to escape right angle bracket:

=>
\<foo>

don’t escape anything inside blocks of code.