1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
|
Title: Markdown Format Extension - BlueFeather Manual
CSS: black.css
<div class="back"><a href="index.html">BlueFeather Manual</a></div>
Markdown Format Extension
====
BlueFeather has imported some extensions addition to the
[original Markdown syntax](http://daringfireball.net/projects/markdown/).
{toc}
From PHP Markdown Extra
----
* If you want to know about original PHP Markdown Extra, see the <http://michelf.com/projects/php-markdown/extra/>.
### Definition List (dl) ###
Pair of a term and a sentence which starts with `:` symbol is parsed
as *Definition List.*
Mandarin
: Orange and sweet-sour.
Apple
: Red and sweet.
>Mandarin
>: Orange and sweet-sour.
>
>Apple
>: Red and sweet.
You can use multiple terms, multiple sentences, or both.
Mandarin
: Orange.
: Sweet-sour.
Apple
Ringo
: Red and sweet.
>Mandarin
>: Orange.
>: Sweet-sour.
>
>Apple
>Ringo
>: Red and sweet.
And that, you can make sentences a paragraph element by blank-line, and you can
append any block-level elements after the paragraph by indent.
Mandarin
: Orange and sweet-sour. Used for juice.
Apple
: Has these features.
* Sweet
* Red and globular
>Mandarin
>
>: Orange and sweet-sour. Used for juice.
>
>Apple
>
>: Has these features.
>
> * Sweet
> * Red and globular
### Footnote ###
Such as that text, parsed as *footnote*.
That's some text with a footnote.[^1]
[^1]: And that's the footnote.
>That's some text with a footnote.[^1]
[^1]: And that's the footnote.
Definition of footnote can be in any places.
And that, instead of number, any ids.
That's some text with a footnote.[^ex-fn]
[^ex-fn]: And that's the footnote.
### Header-id attribute ###
You can add header-id attribute.
Recipe {#recipe}
----
See the section of [Recipe](#recipe).
~
## Recipe ## {#recipe}
----
See the section of [Recipe](#recipe).
>Recipe {#recipe}
>----
>
>See the section of [Recipe](#recipe).
Be careful, *any character except line-break (LF) is NOT allowed after id.*
### Fenced Code Block ###
~~~
A range from a line which starts with three or more tildes (~) to another
line same as it is parsed as code-block.
~~~
>~~~
> A range from a line which starts with three or more tildes (~) to another
>line same as it is parsed as code-block.
>~~~
### Table ###
Cells separated pipe-symbol ( `\|` ) are parsed as table. 1st line is headers.
2nd line is separators. And 3rd or later line is data.
|Name |Color |Number|
|--------|-----------|------|
|Apple |Red | 8|
|Mandarin|Orange | 32|
>|Name |Color |Number|
>|--------|-----------|------|
>|Apple |Red | 8|
>|Mandarin|Orange | 32|
Right borders and spaces is optional.
|Name |Color |Number
|--------|-----------|------
|Apple |Red |8
|Mandarin|Orange |32
|Name|Color|Number|
|-|-|-|
|Apple|Red|8|
|Mandarin|Orange|32|
But, be careful, *left borders is NOT optional.* This behavior differs from PHP
Markdown Extra.
If a colon ( `\:` ) is at right of cell in 2nd line, the column is
right-aligned. If colons are at left and right, the column is center-aligned.
|Name |Color |Number|
|--------|:---------:|-----:|
|Apple |Red | 8|
|Mandarin|Orange | 32|
>|Name |Color |Number|
>|--------|:---------:|-----:|
>|Apple |Red | 8|
>|Mandarin|Orange | 32|
### Difference from PHP Markdown Extra ###
* At PHP Markdown Extra, a block-level html tag can be indented. But, at
BlueFeather, a block-level html tag CANNOT be indented. (same as original
Markdown)
* PHP Markdown Extra doesn't emphasize this phrase.
Please open the folder "secret_magic_box".
But, *BlueFeather emphasizes this phrase in this case.* (same as original
Markdown)
* BlueFeather doesn't parse [Markdown Inside HTML Blocks][] and [Abbreviations][].
* Left borders of table is NOT optional.
BlueFeather Original
----
### TOC ###
`{toc}` at line head is substituted table of contents. (a list of headers)
{toc}
>{toc}
You can specify to include levels of header.
{toc:h3..}
>{toc:h3..}
Default is h2 - h6.
Following formats are usable to specify levels.
{toc:h3-} (same as previous example)
{toc:h3} (h3 only)
{toc:h3..h4} (from h3 to h4)
{toc:..h4} (from h2 to h4)
Be careful, Headers *written by Markdown on the document root*, are only
included in TOC. So following headers are NOT included in TOC.
<h2>not included</h2>
> ## not included ##
### Block Separator ###
Normally, two or more block-level elements (lists, code blocks, or others) are
combined even if a blank line splits them. But, the specification is bad in
that case.
1. list1 item1
2. list1 item2
3. list1 item3
1. list2 item1
2. list2 item2
3. list2 item3
~
<ol>
<li>list1 item1</li>
<li>list1 item2</li>
<li><p>list1 item3</p></li>
<li><p>list2 item1</p></li>
<li>list2 item2</li>
<li>list2 item3</li>
</ol>
One way for the matter, to use horizontal line.
1. list1 item1
2. list1 item2
3. list1 item3
----
1. list2 item1
2. list2 item2
3. list2 item3
~
<ol>
<li>list1 item1</li>
<li>list1 item2</li>
<li>list1 item3</li>
</ol>
<hr />
<ol>
<li>list2 item1</li>
<li>list2 item2</li>
<li>list2 item3</li>
</ol>
But, you might not want horizontal line in some cases. Because of the matter,
at BlueFeather, only one tilde symbol works as block separator.
~
For example:
1. list1 item1
2. list1 item2
3. list1 item3
~
1. list2 item1
2. list2 item2
3. list2 item3
~
<ol>
<li>list1 item1</li>
<li>list1 item2</li>
<li>list1 item3</li>
</ol>
<ol>
<li>list2 item1</li>
<li>list2 item2</li>
<li>list2 item3</li>
</ol>
[PHP Markdown Extra]: http://michelf.com/projects/php-markdown/extra/
[Markdown Inside HTML Blocks]: http://michelf.com/projects/php-markdown/extra/#markdown-attr
[Abbreviations]: http://michelf.com/projects/php-markdown/extra/#abbr
|