OSDN Git Service

Regular updates
[twpd/master.git] / kramdown.md
1 ---
2 title: Kramdown
3 category: Markup
4 ---
5
6 ### Configuration
7
8  * `parse_block_html` - process kramdown syntax inside blocks
9  * `parse_span_html` - process kramdown syntax inside inlines
10  * `html_to_native` - convert html elements to native elements
11
12     {::options parse_block_html="true" /}
13
14 For the GFM parser:
15
16  * `hard_wrap`
17
18 http://kramdown.gettalong.org/parser/gfm.html
19
20 ### For jekyll (gh-pages)
21
22     # _config.yml
23     markdown: kramdown
24     kramdown:
25       input: GFM
26
27 ### Footnotes (Kramdown)
28
29     This is some text.[^1]. Other text.[^footnote].
30
31     [^1]: Some *crazy* footnote definition.
32
33 ### Abbreviations (Kramdown)
34
35     This is some text not written in HTML but in another language!
36
37     *[another language]: It's called Markdown
38     *[HTML]: HyperTextMarkupLanguage
39
40 ### Classes and IDs (Kramdown)
41
42     A simple paragraph with an ID attribute.
43     {: #para-one}
44
45     > A blockquote with a title
46     {:title="The blockquote title"}
47     {: #myid}
48
49     * {:.cls} This item has the class "cls"
50
51     {:.ruby}
52         Some code here
53
54 ### References
55
56  * http://kramdown.gettalong.org/syntax.html
57  * http://kramdown.gettalong.org/parser/kramdown.html