Markdown Features Test

March 01, 2019

Markdown: Syntax

From https://raw.githubusercontent.com/sparanoid/almace-scaffolding/master/app/posts/note/2014-06-06-markdown-features-test.md

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

{% highlight ruby linenos %} def show @widget = Widget(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @widget } end end {% endhighlight %}

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

foobarbaz

https://sparanoid.com/

Strikethroughs

This is good bad.

Space after Headers

This is not a header.

Superscripts

This is the 2^(nd) time.

Footnotes

ThisLorem lean startup ipsum product market fit customer development acquihire technical cofounder. User engagement A/B testing shrink a market venture capital pitch deck. Social bookmarking group buying crowded market pivot onboarding freemium prototype ping pong. Early stage disruptive ecosystem community outreach dynamic location based strategic investor. is2 a sentence3.

ID 日本語タイトル

Expected id should be id-ri-ben-yu-taitoru.

ID 中文標題

Expected id should be id-zhong-wen-biao-ti.


  1. An Important Announcement by Richard Ziade at Readability