"Fossies" - the Fresh Open Source Software Archive

Member "pandoc-2.7.3/test/writer.jira" (12 Jun 2019, 9058 Bytes) of package /linux/www/pandoc-2.7.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
    2 
    3 ----
    4 
    5 h1. {anchor:headers}Headers
    6 
    7 h2. {anchor:level-2-with-an-embedded-link}Level 2 with an [embedded link|/url]
    8 
    9 h3. {anchor:level-3-with-emphasis}Level 3 with _emphasis_
   10 
   11 h4. {anchor:level-4}Level 4
   12 
   13 h5. {anchor:level-5}Level 5
   14 
   15 h1. {anchor:level-1}Level 1
   16 
   17 h2. {anchor:level-2-with-emphasis}Level 2 with _emphasis_
   18 
   19 h3. {anchor:level-3}Level 3
   20 
   21 with no blank line
   22 
   23 h2. {anchor:level-2}Level 2
   24 
   25 with no blank line
   26 
   27 ----
   28 
   29 h1. {anchor:paragraphs}Paragraphs
   30 
   31 Here's a regular paragraph.
   32 
   33 In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard‐wrapped line in the middle of a paragraph looked like a list item.
   34 
   35 Here's one with a bullet. * criminey.
   36 
   37 There should be a hard line break
   38 here.
   39 
   40 ----
   41 
   42 h1. {anchor:block-quotes}Block Quotes
   43 
   44 E‐mail style:
   45 
   46 bq. This is a block quote. It is pretty short.
   47 
   48 
   49 {quote}
   50 Code in a block quote:
   51 
   52 {code}
   53 sub status \{
   54     print "working";
   55 }
   56 {code}
   57 
   58 A list:
   59 
   60 # item one
   61 # item two
   62 
   63 Nested block quotes:
   64 
   65 bq. nested
   66 
   67 
   68 bq. nested
   69 
   70 
   71 {quote}
   72 
   73 This should not be a block quote: 2 > 1.
   74 
   75 And a following paragraph.
   76 
   77 ----
   78 
   79 h1. {anchor:code-blocks}Code Blocks
   80 
   81 Code:
   82 
   83 {code}
   84 ‐‐‐‐ (should be four hyphens)
   85 
   86 sub status \{
   87     print "working";
   88 }
   89 
   90 this code block is indented by one tab
   91 {code}
   92 
   93 And:
   94 
   95 {code}
   96     this code block is indented by two tabs
   97 
   98 These should not be escaped:  \$ \\ \> \[ \\{
   99 {code}
  100 
  101 ----
  102 
  103 h1. {anchor:lists}Lists
  104 
  105 h2. {anchor:unordered}Unordered
  106 
  107 Asterisks tight:
  108 
  109 * asterisk 1
  110 * asterisk 2
  111 * asterisk 3
  112 
  113 Asterisks loose:
  114 
  115 * asterisk 1
  116 * asterisk 2
  117 * asterisk 3
  118 
  119 Pluses tight:
  120 
  121 * Plus 1
  122 * Plus 2
  123 * Plus 3
  124 
  125 Pluses loose:
  126 
  127 * Plus 1
  128 * Plus 2
  129 * Plus 3
  130 
  131 Minuses tight:
  132 
  133 * Minus 1
  134 * Minus 2
  135 * Minus 3
  136 
  137 Minuses loose:
  138 
  139 * Minus 1
  140 * Minus 2
  141 * Minus 3
  142 
  143 h2. {anchor:ordered}Ordered
  144 
  145 Tight:
  146 
  147 # First
  148 # Second
  149 # Third
  150 
  151 and:
  152 
  153 # One
  154 # Two
  155 # Three
  156 
  157 Loose using tabs:
  158 
  159 # First
  160 # Second
  161 # Third
  162 
  163 and using spaces:
  164 
  165 # One
  166 # Two
  167 # Three
  168 
  169 Multiple paragraphs:
  170 
  171 # Item 1, graf one.
  172 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
  173 # Item 2.
  174 # Item 3.
  175 
  176 h2. {anchor:nested}Nested
  177 
  178 * Tab
  179 ** Tab
  180 *** Tab
  181 
  182 Here's another:
  183 
  184 # First
  185 # Second:
  186 #* Fee
  187 #* Fie
  188 #* Foe
  189 # Third
  190 
  191 Same thing but with paragraphs:
  192 
  193 # First
  194 # Second:
  195 #* Fee
  196 #* Fie
  197 #* Foe
  198 # Third
  199 
  200 h2. {anchor:tabs-and-spaces}Tabs and spaces
  201 
  202 * this is a list item indented with tabs
  203 * this is a list item indented with spaces
  204 ** this is an example list item indented with tabs
  205 ** this is an example list item indented with spaces
  206 
  207 h2. {anchor:fancy-list-markers}Fancy list markers
  208 
  209 # begins with 2
  210 # and now 3
  211 with a continuation
  212 ## sublist with roman numerals, starting with 4
  213 ## more items
  214 ### a subsublist
  215 ### a subsublist
  216 
  217 Nesting:
  218 
  219 # Upper Alpha
  220 ## Upper Roman.
  221 ### Decimal start with 6
  222 #### Lower alpha with paren
  223 
  224 Autonumbering:
  225 
  226 # Autonumber.
  227 # More.
  228 ## Nested.
  229 
  230 Should not be a list item:
  231 
  232 M.A. 2007
  233 
  234 B. Williams
  235 
  236 ----
  237 
  238 h1. {anchor:definition-lists}Definition Lists
  239 
  240 Tight using spaces:
  241 
  242 * *apple*
  243 red fruit
  244 * *orange*
  245 orange fruit
  246 * *banana*
  247 yellow fruit
  248 
  249 Tight using tabs:
  250 
  251 * *apple*
  252 red fruit
  253 * *orange*
  254 orange fruit
  255 * *banana*
  256 yellow fruit
  257 
  258 Loose:
  259 
  260 * *apple*
  261 red fruit
  262 * *orange*
  263 orange fruit
  264 * *banana*
  265 yellow fruit
  266 
  267 Multiple blocks with italics:
  268 
  269 * *_apple_*
  270 red fruit
  271 contains seeds, crisp, pleasant to taste
  272 * *_orange_*
  273 orange fruit
  274 {code}
  275 \{ orange code block }
  276 {code}
  277 bq. orange block quote
  278 
  279 Multiple definitions, tight:
  280 
  281 * *apple*
  282 red fruit
  283 computer
  284 * *orange*
  285 orange fruit
  286 bank
  287 
  288 Multiple definitions, loose:
  289 
  290 * *apple*
  291 red fruit
  292 computer
  293 * *orange*
  294 orange fruit
  295 bank
  296 
  297 Blank line after term, indented marker, alternate markers:
  298 
  299 * *apple*
  300 red fruit
  301 computer
  302 * *orange*
  303 orange fruit
  304 *# sublist
  305 *# sublist
  306 
  307 h1. {anchor:html-blocks}HTML Blocks
  308 
  309 Simple block on one line:
  310 
  311 foo
  312 And nested without indentation:
  313 
  314 foo
  315 
  316 bar
  317 Interpreted markdown in a table:
  318 
  319 
  320 
  321 
  322 This is _emphasized_
  323 
  324 
  325 And this is *strong*
  326 
  327 
  328 
  329 
  330 Here's a simple block:
  331 
  332 foo
  333 
  334 This should be a code block, though:
  335 
  336 {code}
  337 <div>
  338     foo
  339 </div>
  340 {code}
  341 
  342 As should this:
  343 
  344 {code}
  345 <div>foo</div>
  346 {code}
  347 
  348 Now, nested:
  349 
  350 foo
  351 This should just be an HTML comment:
  352 
  353 
  354 Multiline:
  355 
  356 
  357 
  358 Code block:
  359 
  360 {code}
  361 <!‐‐ Comment ‐‐>
  362 {code}
  363 
  364 Just plain comment, with trailing spaces on the line:
  365 
  366 
  367 Code:
  368 
  369 {code}
  370 <hr />
  371 {code}
  372 
  373 Hr's:
  374 
  375 
  376 
  377 
  378 
  379 
  380 
  381 
  382 
  383 
  384 ----
  385 
  386 h1. {anchor:inline-markup}Inline Markup
  387 
  388 This is _emphasized_, and so _is this_.
  389 
  390 This is *strong*, and so *is this*.
  391 
  392 An _[emphasized link|/url]_.
  393 
  394 *_This is strong and em._*
  395 
  396 So is *_this_* word.
  397 
  398 *_This is strong and em._*
  399 
  400 So is *_this_* word.
  401 
  402 This is code: {{>}}, {{$}}, {{\}}, {{\$}}, {{<html>}}.
  403 
  404 -This is _strikeout_.-
  405 
  406 Superscripts: a{^bc^}d a{^_hello_^} a{^hello there^}.
  407 
  408 Subscripts: H{~2~}O, H{~23~}O, H{~many of them~}O.
  409 
  410 These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
  411 
  412 ----
  413 
  414 h1. {anchor:smart-quotes-ellipses-dashes}Smart quotes, ellipses, dashes
  415 
  416 "Hello," said the spider. "'Shelob' is my name."
  417 
  418 'A', 'B', and 'C' are letters.
  419 
  420 'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
  421 
  422 'He said, "I want to go."' Were you alive in the 70's?
  423 
  424 Here is some quoted '{{code}}' and a "[quoted link|http://example.com/?foo=1&bar=2]".
  425 
  426 Some dashes: one -- two  --  three -- four  --  five.
  427 
  428 Dashes between numbers: 5 - 7, 255 - 66, 1987 - 1999.
  429 
  430 Ellipses...and...and....
  431 
  432 ----
  433 
  434 h1. {anchor:latex}LaTeX
  435 
  436 * 
  437 * 2 + 2 = 4
  438 * _x_ ∈ _y_
  439 * _α_ ∧ _ω_
  440 * 223
  441 * _p_‐Tree
  442 * Here's some display math: \\$$\frac\{d}\{dx}f(x)=\lim_\{h\to 0}\frac\{f(x+h)‐f(x)}\{h}$$\\
  443 * Here's one that has a line break in it: _α_ + _ω_ × _x_{^2^}.
  444 
  445 These shouldn't be math:
  446 
  447 * To get the famous equation, write {{$e = mc^2$}}.
  448 * $22,000 is a _lot_ of money. So is $34,000. (It worked if "lot" is emphasized.)
  449 * Shoes ($20) and socks ($5).
  450 * Escaped {{$}}: $73 _this should be emphasized_ 23$.
  451 
  452 Here's a LaTeX table:
  453 
  454 
  455 ----
  456 
  457 h1. {anchor:special-characters}Special Characters
  458 
  459 Here is some unicode:
  460 
  461 * I hat: Î
  462 * o umlaut: ö
  463 * section: §
  464 * set membership: ∈
  465 * copyright: ©
  466 
  467 AT&T has an ampersand in their name.
  468 
  469 AT&T is another way to write it.
  470 
  471 This & that.
  472 
  473 4 < 5.
  474 
  475 6 > 5.
  476 
  477 Backslash: \
  478 
  479 Backtick: `
  480 
  481 Asterisk: *
  482 
  483 Underscore: _
  484 
  485 Left brace: \{
  486 
  487 Right brace: }
  488 
  489 Left bracket: [
  490 
  491 Right bracket: ]
  492 
  493 Left paren: (
  494 
  495 Right paren: )
  496 
  497 Greater‐than: >
  498 
  499 Hash: #
  500 
  501 Period: .
  502 
  503 Bang: !
  504 
  505 Plus: +
  506 
  507 Minus: ‐
  508 
  509 ----
  510 
  511 h1. {anchor:links}Links
  512 
  513 h2. {anchor:explicit}Explicit
  514 
  515 Just a [URL|/url/].
  516 
  517 [URL and title|/url/].
  518 
  519 [URL and title|/url/].
  520 
  521 [URL and title|/url/].
  522 
  523 [URL and title|/url/]
  524 
  525 [URL and title|/url/]
  526 
  527 [with_underscore|/url/with_underscore]
  528 
  529 [Email link|mailto:nobody@nowhere.net]
  530 
  531 [Empty|].
  532 
  533 h2. {anchor:reference}Reference
  534 
  535 Foo [bar|/url/].
  536 
  537 With [embedded [brackets]|/url/].
  538 
  539 [b|/url/] by itself should be a link.
  540 
  541 Indented [once|/url].
  542 
  543 Indented [twice|/url].
  544 
  545 Indented [thrice|/url].
  546 
  547 This should [not][] be a link.
  548 
  549 {code}
  550 [not]: /url
  551 {code}
  552 
  553 Foo [bar|/url/].
  554 
  555 Foo [biz|/url/].
  556 
  557 h2. {anchor:with-ampersands}With ampersands
  558 
  559 Here's a [link with an ampersand in the URL|http://example.com/?foo=1&bar=2].
  560 
  561 Here's a link with an amersand in the link text: [AT&T|http://att.com/].
  562 
  563 Here's an [inline link|/script?foo=1&bar=2].
  564 
  565 Here's an [inline link in pointy braces|/script?foo=1&bar=2].
  566 
  567 h2. {anchor:autolinks}Autolinks
  568 
  569 With an ampersand: [http://example.com/?foo=1&bar=2|http://example.com/?foo=1&bar=2]
  570 
  571 * In a list?
  572 * [http://example.com/|http://example.com/]
  573 * It should.
  574 
  575 An e‐mail address: [nobody@nowhere.net|mailto:nobody@nowhere.net]
  576 
  577 bq. Blockquoted: [http://example.com/|http://example.com/]
  578 
  579 
  580 Auto‐links should not occur here: {{<http://example.com/>}}
  581 
  582 {code}
  583 or here: <http://example.com/>
  584 {code}
  585 
  586 ----
  587 
  588 h1. {anchor:images}Images
  589 
  590 From "Voyage dans la Lune" by Georges Melies (1902):
  591 
  592 !lalune.jpg!
  593 
  594 Here is a movie !movie.jpg! icon.
  595 
  596 ----
  597 
  598 h1. {anchor:footnotes}Footnotes
  599 
  600 Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote reference, because it contains a space.[^my note] Here is an inline note.[3]
  601 
  602 bq. Notes can go in quotes.[4]
  603 
  604 
  605 # And in list items.[5]
  606 
  607 This paragraph should not be part of the note, as it is not indented.
  608 
  609 
  610 [1] Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
  611 
  612 
  613 [2] Here's the long note. This one contains multiple blocks.
  614 
  615 Subsequent blocks are indented to show that they belong to the footnote (as with list items).
  616 
  617 {code}
  618   \{ <code> }
  619 {code}
  620 
  621 If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
  622 
  623 
  624 [3] This is _easier_ to type. Inline notes may contain [links|http://google.com] and {{]}} verbatim characters, as well as [bracketed text].
  625 
  626 
  627 [4] In quote.
  628 
  629 
  630 [5] In list.