send-mail/node_modules/showdown/test/performance.testfile.md
dougpagani 2095e6ffe3
Add markdown format support (#25)
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2020-11-30 18:51:34 +01:00

30 KiB
Raw Blame History

This is an example reference-style link. This is [another] foo reference-style link. This is a third reference-style link. This is a fourth reference-style link.

http://example.com/

a blockquote with a 4 space indented line (not code)

sep

a blockquote

with some code after


> this is a pseudo blockquote
> inside a code block

foo

> this is another bq
inside code

This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here's some example code:

return shell_exec("echo $input | $markdown_script");

This is a multi line blockquote test

With more than one line.

This is some HTML:

<h1>Heading</h1>

This is a normal paragraph:

This is a code block.
  • Bird

  • Magic

single asterisks

single underscores

double asterisks

double underscores

text with italic sentence in middle

text with bold sentence in middle

text with bold text that spans across multiple lines

underscored_word

doubleunderscore__word

asterix*word

doubleasterix**word

line with_underscored word

line with__doubleunderscored word

line with*asterixed word

line with**doubleasterixed word

some line_with_inner underscores

some line__with__inner double underscores

some linewithinner asterixs

some linewithinner double asterixs

another line with just _one underscore

another line with just __one double underscore

another line with just *one asterix

another line with just **one double asterix

a sentence with_underscore and another_underscore

a sentence with__doubleunderscore and another__doubleunderscore

a sentence withasterix and anotherasterix

a sentence withdoubleasterix and anotherdoubleasterix

escaped word_with_underscores

escaped word__with__double underscores

escaped word__with__single italic underscore

escaped word*with*asterixs

escaped word**with**asterixs

escaped word***with***bold asterixs

It happened in 1986. What a great season.

These should all be escaped:

\

`

*

_

{

}



(

)

#

+

-

.

!

function MyFunc(a) {
    // ...
}

That is some code!

Define a function in javascript:

function MyFunc(a) {
    var s = '`';
}

And some nested quote

<div>HTML!</div>

Define a function in javascript:

function MyFunc(a) {
    var s = '`';
}

And some HTML

<div>HTML!</div>
code can go here
this is rendered on a second line

This is an H1

This is an H1

This is an H1

This is an H2

This is an H2

This is an H2

This is an H3

This is an H3

This is an H4

This is an H5
This is an H6





words words

words
<!-- comment -->
  • list item 1

    <a href="www.google.com">google</a>
    <div>
      <div>some div</div>
    </div>
    

These HTML5 tags should pass through just fine.

hello
head footsies navigation
read me
read me

the end

Foo
Bar
Foo
Bar
Bar
My street Sorry, your browser doesn't support the <canvas> element.
An awesome picture
Caption for the awesome picture

Main title

Secondary title

Alt text

Alt text

Alt text

Search the web at Google or Daring Fireball.

This is an example inline link.

This link has no title attribute.

Create a new function.

Use the backtick in MySQL syntax SELECT `column` FROM whatever.

A single backtick in a code span: `

A backtick-delimited string in a code span: `foo`

Please don't use any <blink> tags.

&#8212; is the decimal-encoded equivalent of &mdash;.

Hello.this_is_a_variable and.this.is.another_one

An exciting sentence.

This is a multi line blockquote test

With more than one line.

some text words


words

some title

  1. list item 1
  2. list item 2

some text in a blockquote

  • another list item 1
  • another list item 2

some title

  1. list item 1
  2. list item 2
some code

and some other line of code
  • another list item 1

  • another list item 2

  • A list item with a blockquote:

    This is a blockquote inside a list item.

  • A list item with code:

    alert('Hello world!');
    

some code yeah

some inline code block

some inline code block

yo dawg some code inception

some **div** yeah
  1. This is a major bullet point.
That contains multiple paragraphs.
  1. And another line
  • This line spans more than one line and is lazy
  • Similar to this line

This is a multi line blockquote test

And nesting!

With more than one line.

  1. Red

  2. Green

  3. Blue

  4. Red

  5. Green

  6. Blue

  7. Red

  8. Green

  9. Blue

  • foo

    • bazinga

    • yeah

  • bar

    1. damn

    2. so many paragraphs

  • baz

code inception

<pre><code>
<div>some html code inside code html tags inside a fenced code block</div>
</code></pre>

foobar

blabla


foobar


some html code

See my About page for details.

Same Title

some text

Same Title

Hello, world!

important

important

really freakingstrong

  • Red
  • Green
  • Blue
  • Red
  • Green
  • Blue
  • Red
  • Green
  • Blue

There's an episode of Star Trek: The Next Generation

some title

Test bold and italic

![my image](./pic/pic1_50.png =100pxx20px)

my image2

1: ./pic/pic1_50.png =100pxx20px

foo.bar

www.foobar

www.foobar.com

http://foobar.com

https://www.foobar.com/baz?bazinga=nhecos;

http://www.google.com

this is a sentence_with_mid underscores

this is a sentence with just_one underscore

this should be parsed as emphasis

this is double__underscore__mid word

this has just__one double underscore

this should be parsed as bold

emphasis at end of sentence

emphasis at line start

multi line emphasis yeah it is yeah

a strikethrough word

this should~~not be parsed

strike-through text

my things

  • foo
  • [] bar
  • baz
  • bazinga

otherthings

some markdown

blabla

This is **not parsed**
This is **parsed**
This is **not parsed**

pointer *ptr *thing

something _else _bla

something __else __bla

http://website.com/img@x2.jpg

http://website.com/img-x2.jpg

http://website.com/img@x2

http://website.com/img@.jpg

a simple wrapped line

Your friend test* (@test) updated his/her description

  ## markdown doc
  
  you can use markdown for card documentation
    - foo
    - bar

this is a link to www.github.com

this is a link to <www.google.com>

  1. One
  2. Two
    • A
    • B
  3. Three

this has simple linebreaks

testing
some
code
  1. paragraphed list

    this belongs to the first list item

  2. This text also

simple text

  • a list item
  • another list item

simple text

  • some item

    another paragraph

    • And now

      paragraph sublist

      • and even

        another one

  • foo

foo烫 bar

foo bar

some header

some header with &+$,/:;=?@"#{}|^~[]`\*()%.!' chars

another header > with < chars

Nom : aaaa Nom : aaa

Just an example info@example.com ok?

#Given

#When

#Then

foo

bar

http://en.wikipedia.org/wiki/Tourism_in_Germany

this email foobar@example.com should not be encoded

this is some text

function thisThing() {
  echo "some weird formatted code!";
}

some other text

  • foo
    • bar

...

  • baz
    1. bazinga

url http://www.google.com.

url http://www.google.com!

url http://www.google.com? foo

url (http://www.google.com) bazinga

hello @tivie how are you?

this email foo@gmail.com is not parsed

this @mentions is not parsed also

header

#header

  1. One

  2. Two foo

    bar bazinga

    nhecos

  3. Three

    • foo

    • bar

foo bar baz
100 blabla aaa
key value
My Key My Value
First Header Second Header
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2
First Header Second Header
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2
First Header Second Header
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2
First Header Second Header Third Header
Content Cell Content Cell C
Content Cell Content Cell C

| First Header | Second Header | Third Header | Fourth Header | | :------------ |: ----------- :| ------------ :| ------------- | | Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 | | Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 | | Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 | | Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 | | Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |

First Header Second Header Third Header Fourth Header
Row 1 Cell 1 Row 1 Cell 2 Row 1 Cell 3 Row 1 Cell 4
Row 2 Cell 1 Row 2 Cell 2 Row 2 Cell 3 Row 2 Cell 4
Row 3 Cell 1 Row 3 Cell 2 Row 3 Cell 3 Row 3 Cell 4
Row 4 Cell 1 Row 4 Cell 2 Row 4 Cell 3 Row 4 Cell 4
Row 5 Cell 1 Row 5 Cell 2 Row 5 Cell 3 Row 5 Cell 4
Left-Aligned Center-Aligned Right-Aligned
col 3 is some wordy paragraph $1600
col 2 is centered $12
zebra stripes are neat $1

Table Test

section 1

header1 header2 header3
Value1 Value2 Value3

section 2

headerA headerB headerC
ValueA ValueB ValueC

some text

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| **col 3 is**  | right-aligned | $1600 |
| col 2 is      | *centered*    |   $12 |
| zebra stripes | ~~are neat~~  |    $1 |

Stats

Status | AGENT1 | AGENT2 | AGENT3 | AGENT4 | AGENT5 | AGENT6 | AGENT7 | AGENT8 | AGENT9 | TOTAL | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | AGENT ERROR | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | APPROVED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |

| First Header | Second Header | | ============= | ============= | | Row 1 Cell 1 | Row 1 Cell 2 | | Row 2 Cell 1 | Row 2 Cell 2 |

First Header Second Header
bold img
italic link
some code google
<www.foo.com> normal

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisi est, ullamcorper euismod iaculis sed, tristique at neque. Nullam metus risus, malesuada vitae imperdiet ac, tincidunt eget lacus. Proin ullamcorper vulputate dictum. Vestibulum consequat ultricies nibh, sed tempus nisl mattis a.

First Header Second Header
Row 1 Cell 1 Row 1 Cell 2
Row 2 Cell 1 Row 2 Cell 2

Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum. Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper. Sed vel pretium lorem.

First Header Second Header

| First Header | Second Header |

https://ghost.org

https://ghost.org

Markdown Footnotes

The quick brown fox[^1] jumped over the lazy dog[^2].

[^1]: Foxes are red
[^2]: Dogs are usually not red

The quick brown fox[^1] jumped over the lazy dog[^2].

Syntax Highlighting

```language-javascript
   [...]
```

Combined with Prism.js in the Ghost theme:

// # Notifications API
// RESTful API for creating notifications
var Promise            = require('bluebird'),
    _                  = require('lodash'),
    canThis            = require('../permissions').canThis,
    errors             = require('../errors'),
    utils              = require('./utils'),

    // Holds the persistent notifications
    notificationsStore = [],
    // Holds the last used id
    notificationCounter = 0,
    notifications;

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

baz_bar_foo

baz_bar_foo

baz_bar_foo

baz bar foo baz_bar_foo foo bar baz and foo

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo
foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

  1. foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  2. foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

blockquote foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

  • foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo
  • foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

http://en.wikipedia.org/wiki/Tourism_in_Germany

[an example] wiki

Another example of a link

foo_bar_baz foo_bar_baz_bar_foo _foo_bar baz_bar_ baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

foo_bar_baz foo_bar_baz_bar_foo foo_bar baz_bar baz_foo

http://myurl.com/foo_bar_baz_bar_foo

http://myurl.com/foo_bar_baz_bar_foo

italics.

italics .

escaped word_with_underscores

escaped word__with__double underscores

escaped word__with__single italic underscore

escaped word*with*asterixs

escaped word**with**asterixs

escaped word***with***bold asterixs

  • Item 1
  • Item 2
  1. Item 1
  2. Item 2
  • Item 1
  • Item 2

2015-10-04

  1. Hi, I am a thing

    
    $ git clone thing.git
    
    dfgdfg
    
  2. I am another thing!

    
    $ git clone other-thing.git
    
    foobar
    

a blockquote

followed by an heading

Test pre in a list

  • & <
  • & <
    • & <
    • & <
      • & <
      • & <
        • & <
        • & <

Title 1

Title 2


foo

```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

bar

this is a long paragraph

this is another long paragraph

```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

```python
s = "Python syntax highlighting"
print s
```

```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```

```python
s = "Python syntax highlighting"
print s
```

```
No language indicated, so no syntax highlighting.
But let's throw in a tag.
```
```python
var s;
```

this is a long paragraph


```javascript
var s;
```

sd-inline sd-ref

foo

sd-inline sd-ref

foo

sd-ref sd-inline

foo

sd-ref sd-inline

foo

sd-ref

sd-inline sd-ref

foo

sd-ref sd-inline

sd-inline sd-ref

foo

sd-ref sd-inline

  • list item 1

    <parent>
    <child>child1</child>
    <!-- This is a comment -->
    <child>child2</child>
    <child>some text <!-- a comment --></child>
    </parent>
    
  • list item 2

<parent>
<child>child1</child>
<!-- This is a comment -->
<child>child2</child>
<child>some text <!-- a comment --></child>
</parent>
  • one
  1. two

foo

  • one
  1. two

foo

  • one
  1. two

foo

  • one
    1. two

foo

  • one
  • two

foo

  • one
  • two

foo

  • one
  • two

foo

  • one
  • two

foo

  • one * two

  • one long paragraph of text

  1. two

foo

  • one long paragraph of text
  1. two
  • one
  1. two

foo

  • one
  1. two

foo

  • one
    1. two

foo

  • one
    1. two

foo

  • uli one
  • uli two

foo

  • uli one
  • uli two

foo

  • uli one
    • uli two

foo

  • uli one
    • uli two
      • a

a

            • a

a

a

          1. a
      • a
            • a
          1. a

a

fooo

      • aaaaa

    bbbbb

        • -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd


plain text link http://test.com/this_has/one.html with underscores

legit·word_with·1·underscore

a word_with_2underscores (gets em)

this is a underscore_test my cat

another my cat underscore_test bla

This is a first paragraph, on multiple lines.

This is a second paragraph. There are spaces in between the two.

This is a first paragraph, on multiple lines.

This is a second paragraph which has multiple lines too.

A first paragraph.

A second paragraph after 3 CR (carriage return).

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line.

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line.

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

A new long long long long long long long long long long long long long long long long paragraph on 1 line.

An ampersand & in the text flow is escaped as an html entity.

There is an ampersand in the URI.

This is *an asterisk which should stay as is.

This is * an asterisk which should stay as is.

\ backslash ` backtick * asterisk _ underscore {} curly braces

parentheses # hash mark + plus sign - minus sign (hyphen) . dot ! exclamation mark

heading level 1

paragraph

A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.

and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote.

A blockquote on multiple lines like this.

A blockquote on multiple lines like this.

A blockquote on multiple lines like this.

But it has two paragraphs.

A blockquote on multiple lines like this

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

This is the first level of quoting.

This is nested blockquote.

This is the first level of quoting.

This is nested blockquote. Back to the first level.

This is the first level of quoting.

This is nested blockquote.

10 PRINT HELLO INFINITE
20 GOTO 10


10 PRINT < > &
20 GOTO 10


10 PRINT HELLO INFINITE
20 GOTO 10

asterisks

single asterisks

single underscores

HTML entities are written using ampersand notation: ©

These lines all end with end of line (EOL) sequences.

Seriously, they really do.

If you don't believe me: HEX EDIT!

These lines all end with end of line (EOL) sequences.

Seriously, they really do.

If you don't believe me: HEX EDIT!

These lines all end with end of line (EOL) sequences.

Seriously, they really do.

If you don't believe me: HEX EDIT!

This is an H1

This is an H1

This is an H1

this is an h1 with two trailing spaces

A new paragraph.

This is an H1

This is an H2

This is an H2

This is an H2

This is an H3

This is an H3

This is an H4

This is an H4

This is an H5
This is an H5
This is an H6
This is an H6





HTML5

HTML5

HTML5

HTML5

We love <code> and & for everything

We love `code` for everything

We love `code` for everything

A first sentence
and a line break.

A first sentence
and a line break.

This is an automatic link http://www.w3.org/

W3C

W3C

World Wide Web Consortium

World Wide Web Consortium

w3c

World Wide Web Consortium w3c

World Wide Web Consortium

World Wide Web Consortium

World Wide Web Consortium

World Wide Web Consortium

World Wide Web Consortium

  • a list containing a blockquote

    this the blockquote in the list

  • a list containing a block of code

    10 PRINT HELLO INFINITE
    20 GOTO 10
    
  • This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.

  • Suspendisse id sem consectetuer libero luctus adipiscing.

  • This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit.

  • Suspendisse id sem consectetuer libero luctus adipiscing.

1. ordered list escape

  1. 1

    • inner par list
  2. 2

  3. list item 1

  4. list item 2

  5. list item 3

  6. list item 1

  7. list item 2

  8. list item 3

This is a paragraph on multiple lines with hard return.

This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.

This is a paragraph with a trailing and leading space.

This is a paragraph with 1 trailing tab.

This is a paragraph with 2 leading spaces.

This is a paragraph with 3 leading spaces.

This is a paragraph with 1 leading space.

This is a paragraph with a trailing space.

asterisks

double asterisks

double underscores

  • list item 1
  • list item 2
  • list item 3
  • list item 1
  • list item 2
  • list item 3
  • list item 1

  • list item 2

  • list item 3

  • list item 1

  • list item 2

  • list item 3

  • list item 1

  • list item 2

  • list item 3

  • list item 1
  • list item 2
  • list item 3
  • list item in paragraph

  • another list item in paragraph

  • This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a list.

  • and yet another long long long long long long long long long long long long long long long long long long long long long long line.

  • This is a list item with the content on multiline and indented.

  • And this another list item with the same principle.