You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tricks that are less known to GitHub-flavored markdown starters, including escaping `s, writing dropdowns, and centering an image.
Escaping `
The general principle is, escape ` with more `s.
For example, if you want to escape a single `, just wrap it with two on each side, and add spaces, that is, `` ` ``.
If you want to escape three back quotes in a code block, use 4 for the code fence:
````
```python
print('hello')
```
````
Produces:
```python
print('hello')
```
Awesome Dropdown!
Write Markdown!
PythonCode
from __future__ importprint_functionprint('Hello world!')
Raw code
<detailsopen><summary>Write Markdown!</summary><!--All you need is a blank line-->
**Python** *Code*
````python
from __future__ import print_function
print('Hello world!')
```
</details>
View Post on Blog
Escaping
`
The general principle is, escape
`
with more`
s.For example, if you want to escape a single
`
, just wrap it with two on each side, and add spaces, that is,`` ` ``
.If you want to escape three back quotes in a code block, use 4 for the code fence:
Produces:
Awesome Dropdown!
Write Markdown!
Python Code
Raw code
Reference: https://github.github.com/gfm/#html-block
The trick is, that the blank line terminates the HTML block
Center an Image in GFM
Use HTML tag
p
withalign
to wrapimg
The text was updated successfully, but these errors were encountered: