kramdown syntax
in Programming
간단정리 Kramdown Syntax
1. Header.
# H1 header ## H2 header ### H3 header #### H4 header ##### H5 header ###### H6 header
H1 header
H2 header
H3 header
H4 header
H5 header
H6 header
2. Level Header.
First level header ================== Second level header -------------------
First level header
Second level header
3. Line Break
This is a paragraph <= 공백 2개 들어감 which contains a hard line break.
This is a paragraph
which contains a hard line break.
4. BlockQuote
> A sample blockquote. > > >Nested blockquotes are > >also possible. > > ## Headers work too > This is the outer quote again.
A sample blockquote.
Nested blockquotes are also possible.
Headers work too
This is the outer quote again.
This is a sample code block.
Continued here.
This is code block
This is a sample code block.
Continued here.
This is code block
5. Code Block
~~~~~~~~ Here comes some code. ~~~~~~~~
Here comes some code.
6. BlockQuote
1. This is a list item
> with a blockquote
##### and a header
2. Followed by another item
- This is a list item
with a blockquote ##### and a header
- Followed by another item
7. Term
term : definition : another definition another term and another term : and a definition for the term
- term
- definition
- another definition
- another term
- and another term
- and a definition for the term
8. Table
| A simple | table | | with multiple | lines|
| A simple | table |
| with multiple | lines |
| Header1 | Header2 | Header3 |
|:--------|:-------:|--------:|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|----
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|=====
| Foot1 | Foot2 | Foot3
{: rules="groups"}
| Header1 | Header2 | Header3 |
|---|---|---|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
| Foot1 | Foot2 | Foot3 |
9. Link
A [link](http://kramdown.gettalong.org)
A link
10. FootNote
This is a text with a footnote[^1]. [^1]: And here is the definition.
This is a text with a footnote1.
definition은 아래에.
This is a text with a
footnote[^2].
[^2]:
And here is the definition.
> With a quote!
This is a text with a footnote2.
11. Inline Attribute
This is *red*{: style="color: red"}.
This is red.
12. Code Highlight
~~~js
// Example can be run directly in your JavaScript console
// Create a function that takes two arguments and returns the sum of those
// arguments
var adder = new Function("a", "b", "return a + b");
// Call the function
adder(2, 6);
// > 8
~~~
// Example can be run directly in your JavaScript console
// Create a function that takes two arguments and returns the sum of those
// arguments
var adder = new Function("a", "b", "return a + b");
// Call the function
adder(2, 6);
// > 8
highlight 문법 쓰지 말것
13. Abbreviation
This is an HTML example. *[HTML]: Hyper Text Markup Language
This is an HTML example.