-
terms
- header row
- top row - delimiter row
|------|------|
- header row
-
use
-
basic
| name | age | | ---- | --- | | junho | 21 |
-
using (:)
| name | age | | :-: | ---------: | | junho | 21 |
-
-
escaping (|)
| f\|oo | | ----- | | b`\|` az |
| -> |
`\|` -> <code>|<code> -
break condition
table is broken at the first empty line, or beginning of another block-level structure
-
precautions
The header row must match the delimiter row in the number of cells.
| abc | def | | --- | | bar |
- this is treated as paragraph
-
exception
- fewer than header row:
- empty cells are inserted. - greater than header row:
- the excess is ignored - no rows
- no <tbody> is generated in HTML output
- fewer than header row:
- term
- task list items
- check box
- task list items
- use
-
basic
- [ ] walk dog - [x] do homework
-
nested
- [x] today homework - [ ] math - [ ] english - [ ] take a walk
-
-
term
- strikethrough
[Text]
- strikethrough
-
use
-
basic
~~Hi~~ Hello, World!
-
-
caution
new paragraph will cause strikethrough parsing to cease
This ~~ has a new paragraph~~.
-
term
- Autolinks
-automatically recognize and make into link
- Autolinks
-
URL
http will be inserted automatically
-
vaild domain
-
zero or more non-space non-< characters may follow
Visit www.commonmark.org/help for more information.
-
Trailing punctuation (specifically, ?, !, ., ,, :, *, _, and ~) will not be considered
Visit www.commonmark.org.
- only "www.commonmark.org" is considered as link
-
autolink ends in )
- automatically consider as "www.google.com/search?q=Markup+(business)"
-
autolink ends in a semicolon(;)
- exclude entitiy reference (after &)
- automatically consider as "www.google.com/search?q=commonmark"
-
'<' immediately ends an autolink
- automatically consider as "www.commonmark.org/he"
-
http://, https://
-
-
email
1. One ore more characters which are alphanumeric, or ., -, _, or +.
2. An @ symbol.
3. One or more characters which are alphanumeric, or - or _, separated by periods (.).
4. There must be at least one period. The last character must not be one of - or _.
5. + can occur before the @, but not after.
6. ., -, and _ can occur on both sides of the @, but only . may occur at the end of the email address, in which case it will not be considered part of the address:-
basic
foo@bar.baz
-
GFM enables the tagfilter extention But, some HTML tag is not allowed
-
<title>
-
<textarea>
-
<style>
-
<xmp>
-
<iframe>
-
<noembed>
-
<noframes>
-
<script>
-
<plaintext>
<strong> <title> <style> <em> <blockquote> <xmp> is disallowed. <XMP> is also disallowed. </blockquote>
<p><strong> <title> <style> <em></p>
<blockquote>
<xmp> is disallowed. <XMP> is also disallowed.
</blockquote>