Michael Deimel

No comment

Github Flavored Markdown

28. November 2014 - Wartenberg

config

before you can use the update github-flavored-markdown you must update _config.yml with:

markdown: redcarpet
redcarpet:
  extensions: ["no_intra_emphasis",
               "fenced_code_blocks",
               "autolink",
               "tables",
               "highlight",
               "with_toc_data",
               "strikethrough"]

Syntax

http://example.com

highlighted

This is ==highlighted==

This is ==highlighted==

Syntax highlighted

ruby

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

sql

SELECT * FROM mytable WHERE 1=2;

Strikethrough

this is ~~good~~ bad

this is good bad

more

**Everyone _must_ attend the meeting at 5 o'clock today.**

Everyone must attend the meeting at 5 o’clock today.

more info about GitHub Markdown

Markdown