OSDN Git Service

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