Indented Code Blocks
def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
Liquid Tag with linenos Support
1
2
3
4
5
6
7
| def show
@widget = Widget(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @widget }
end
end
|
GFM Code Blocks (fenced_code_blocks)
/* Background color function */
.code-bg (@v) when (lightness(@v) >= 50%) {
@return-bg: mix(#000, lighten(@v, 30%), 10%);
}
.code-bg (@v) when (lightness(@v) < 50%) {
@return-bg: mix(#fff, darken(@v, 10%), 70%);
}
SmartyPants
“Aha! What’s up, man?” – Jony said.
Tables
| Name | Upvotes | Downvotes | Abstentions |
| Alice | 10 | 11 | 2 |
| Bob | 4 | 3 | 1 |
| Charlie | 7 | 9 | 4 |
| Totals | 21 | 23 | 7 |
Intra-emphasis
foo_bar_baz
Auto-link
https://sparanoid.com/
Strikethroughs
This is good bad.
###This is not a header.
Superscripts
This is the 2^(nd) time.
This is a sentence.
ID 日本語タイトル
Expected id should be id-ri-ben-yu-taitoru.
ID 中文標題
Expected id should be id-zhong-wen-biao-ti.