init
This commit is contained in:
5
vendor/cebe/markdown/tests/github-data/del.html
vendored
Normal file
5
vendor/cebe/markdown/tests/github-data/del.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<p>this is <del>striked out</del> after</p>
|
||||
<p><del>striked out</del></p>
|
||||
<p>a line with ~~ in it ...</p>
|
||||
<p>~~</p>
|
||||
<p>~</p>
|
||||
9
vendor/cebe/markdown/tests/github-data/del.md
vendored
Normal file
9
vendor/cebe/markdown/tests/github-data/del.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
this is ~~striked out~~ after
|
||||
|
||||
~~striked out~~
|
||||
|
||||
a line with ~~ in it ...
|
||||
|
||||
~~
|
||||
|
||||
~
|
||||
52
vendor/cebe/markdown/tests/github-data/dense-block-markers.html
vendored
Normal file
52
vendor/cebe/markdown/tests/github-data/dense-block-markers.html
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<h1>this is to test dense blocks (no newlines between them)</h1>
|
||||
<hr />
|
||||
<h2>what is Markdown?</h2>
|
||||
<p>see <a href="http://en.wikipedia.org/wiki/Markdown">Wikipedia</a></p>
|
||||
<h2>a h2</h2>
|
||||
<p>paragraph</p>
|
||||
<p>this is a paragraph, not a headline or list
|
||||
next line</p>
|
||||
<ul>
|
||||
<li>whoo</li>
|
||||
</ul>
|
||||
<p>par</p>
|
||||
<pre><code>code
|
||||
code
|
||||
</code></pre>
|
||||
<p>par</p>
|
||||
<h3>Tasks list</h3>
|
||||
<ul>
|
||||
<li>list items</li>
|
||||
</ul>
|
||||
<h2>headline1</h2>
|
||||
<blockquote><p>quote
|
||||
quote</p>
|
||||
</blockquote>
|
||||
<h2>headline2</h2>
|
||||
<hr />
|
||||
<h1>h1</h1>
|
||||
<h2>h2</h2>
|
||||
<hr />
|
||||
<h3>h3</h3>
|
||||
<ol>
|
||||
<li>ol1</li>
|
||||
<li>ol2</li>
|
||||
</ol>
|
||||
<h4>h4</h4>
|
||||
<ul>
|
||||
<li>listA</li>
|
||||
<li>listB</li>
|
||||
</ul>
|
||||
<h5>h5</h5>
|
||||
<h6>h6</h6>
|
||||
<hr />
|
||||
<hr />
|
||||
<h2>changelog 1</h2>
|
||||
<ul>
|
||||
<li>17-Feb-2013 re-design</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h2>changelog 2</h2>
|
||||
<ul>
|
||||
<li>17-Feb-2013 re-design</li>
|
||||
</ul>
|
||||
56
vendor/cebe/markdown/tests/github-data/dense-block-markers.md
vendored
Normal file
56
vendor/cebe/markdown/tests/github-data/dense-block-markers.md
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
# this is to test dense blocks (no newlines between them)
|
||||
|
||||
----
|
||||
## what is Markdown?
|
||||
see [Wikipedia][]
|
||||
|
||||
a h2
|
||||
----
|
||||
paragraph
|
||||
|
||||
this is a paragraph, not a headline or list
|
||||
next line
|
||||
- whoo
|
||||
|
||||
par
|
||||
code
|
||||
code
|
||||
par
|
||||
|
||||
### Tasks list
|
||||
- list items
|
||||
|
||||
headline1
|
||||
---------
|
||||
> quote
|
||||
> quote
|
||||
|
||||
[Wikipedia]: http://en.wikipedia.org/wiki/Markdown
|
||||
headline2
|
||||
---------
|
||||
|
||||
----
|
||||
# h1
|
||||
## h2
|
||||
---
|
||||
### h3
|
||||
1. ol1
|
||||
2. ol2
|
||||
|
||||
#### h4
|
||||
- listA
|
||||
- listB
|
||||
|
||||
##### h5
|
||||
###### h6
|
||||
--------
|
||||
|
||||
----
|
||||
|
||||
## changelog 1
|
||||
|
||||
* 17-Feb-2013 re-design
|
||||
|
||||
----
|
||||
## changelog 2
|
||||
* 17-Feb-2013 re-design
|
||||
23
vendor/cebe/markdown/tests/github-data/dense-block-markers2.html
vendored
Normal file
23
vendor/cebe/markdown/tests/github-data/dense-block-markers2.html
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<p>Now we need to set:</p>
|
||||
<pre><code class="language-php">'session' => [
|
||||
'cookieParams' => [
|
||||
'path' => '/path1/',
|
||||
]
|
||||
],
|
||||
</code></pre>
|
||||
<p>and</p>
|
||||
<pre><code class="language-php">'session' => [
|
||||
'cookieParams' => [
|
||||
'path' => '/path2/',
|
||||
]
|
||||
],
|
||||
</code></pre>
|
||||
<p>In the following starts a Blockquote:</p>
|
||||
<blockquote><p>this is a blockquote</p>
|
||||
</blockquote>
|
||||
<p>par</p>
|
||||
<hr />
|
||||
<p>par</p>
|
||||
<p>This is some text</p>
|
||||
<h1>Headline1</h1>
|
||||
<p>more text</p>
|
||||
27
vendor/cebe/markdown/tests/github-data/dense-block-markers2.md
vendored
Normal file
27
vendor/cebe/markdown/tests/github-data/dense-block-markers2.md
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
Now we need to set:
|
||||
```php
|
||||
'session' => [
|
||||
'cookieParams' => [
|
||||
'path' => '/path1/',
|
||||
]
|
||||
],
|
||||
```
|
||||
and
|
||||
```php
|
||||
'session' => [
|
||||
'cookieParams' => [
|
||||
'path' => '/path2/',
|
||||
]
|
||||
],
|
||||
```
|
||||
|
||||
In the following starts a Blockquote:
|
||||
> this is a blockquote
|
||||
|
||||
par
|
||||
***
|
||||
par
|
||||
|
||||
This is some text
|
||||
# Headline1
|
||||
more text
|
||||
19
vendor/cebe/markdown/tests/github-data/github-basics.html
vendored
Normal file
19
vendor/cebe/markdown/tests/github-data/github-basics.html
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<h1>GitHub Flavored Markdown</h1>
|
||||
<h2>Multiple underscores in words</h2>
|
||||
<p>do_this_and_do_that_and_another_thing</p>
|
||||
<h2>URL autolinking</h2>
|
||||
<p><a href="http://example.com">http://example.com</a></p>
|
||||
<h2>Strikethrough</h2>
|
||||
<p><del>Mistaken text.</del></p>
|
||||
<h2>Fenced code blocks</h2>
|
||||
<pre><code>function test() {
|
||||
console.log("notice the blank line before this function?");
|
||||
}
|
||||
</code></pre>
|
||||
<h2>Syntax highlighting</h2>
|
||||
<pre><code class="language-ruby">require 'redcarpet'
|
||||
markdown = Redcarpet.new("Hello World!")
|
||||
puts markdown.to_html
|
||||
</code></pre>
|
||||
<pre><code>this is also code
|
||||
</code></pre>
|
||||
40
vendor/cebe/markdown/tests/github-data/github-basics.md
vendored
Normal file
40
vendor/cebe/markdown/tests/github-data/github-basics.md
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
GitHub Flavored Markdown
|
||||
========================
|
||||
|
||||
Multiple underscores in words
|
||||
-----------------------------
|
||||
|
||||
do_this_and_do_that_and_another_thing
|
||||
|
||||
URL autolinking
|
||||
---------------
|
||||
|
||||
http://example.com
|
||||
|
||||
Strikethrough
|
||||
-------------
|
||||
|
||||
~~Mistaken text.~~
|
||||
|
||||
Fenced code blocks
|
||||
------------------
|
||||
|
||||
```
|
||||
function test() {
|
||||
console.log("notice the blank line before this function?");
|
||||
}
|
||||
```
|
||||
|
||||
Syntax highlighting
|
||||
-------------------
|
||||
|
||||
```ruby
|
||||
require 'redcarpet'
|
||||
markdown = Redcarpet.new("Hello World!")
|
||||
puts markdown.to_html
|
||||
```
|
||||
|
||||
~~~
|
||||
this is also code
|
||||
~~~
|
||||
|
||||
12
vendor/cebe/markdown/tests/github-data/github-code-in-numbered-list.html
vendored
Normal file
12
vendor/cebe/markdown/tests/github-data/github-code-in-numbered-list.html
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<ol>
|
||||
<li>Item one.</li>
|
||||
<li><p>Item two with some code:</p>
|
||||
<pre><code>code one
|
||||
</code></pre>
|
||||
</li>
|
||||
<li><p>Item three with code:</p>
|
||||
<pre><code>code two
|
||||
</code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Paragraph.</p>
|
||||
14
vendor/cebe/markdown/tests/github-data/github-code-in-numbered-list.md
vendored
Normal file
14
vendor/cebe/markdown/tests/github-data/github-code-in-numbered-list.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
1. Item one.
|
||||
2. Item two with some code:
|
||||
|
||||
```
|
||||
code one
|
||||
```
|
||||
|
||||
3. Item three with code:
|
||||
|
||||
```
|
||||
code two
|
||||
```
|
||||
|
||||
Paragraph.
|
||||
117
vendor/cebe/markdown/tests/github-data/github-sample.html
vendored
Normal file
117
vendor/cebe/markdown/tests/github-data/github-sample.html
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
<h1>GitHub Flavored Markdown</h1>
|
||||
<p><em>View the <a href="http://github.github.com/github-flavored-markdown/sample_content.html">source of this content</a>.</em></p>
|
||||
<p>Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:</p>
|
||||
<p>Roses are red
|
||||
Violets are blue</p>
|
||||
<p>The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:</p>
|
||||
<p>Roses are red<br />
|
||||
Violets are blue</p>
|
||||
<p>Oh, and one thing I cannot stand is the mangling of words with multiple underscores in them like perform_complicated_task or do_this_and_do_that_and_another_thing.</p>
|
||||
<h2>A bit of the GitHub spice</h2>
|
||||
<p>In addition to the changes in the previous section, certain references are auto-linked:</p>
|
||||
<ul>
|
||||
<li>SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
|
||||
<li>User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
|
||||
<li>User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2</li>
|
||||
<li>#Num: #1</li>
|
||||
<li>User/#Num: mojombo#1</li>
|
||||
<li>User/Project#Num: mojombo/god#1</li>
|
||||
</ul>
|
||||
<p>These are dangerous goodies though, and we need to make sure email addresses don't get mangled:</p>
|
||||
<p>My email addy is tom@github.com.</p>
|
||||
<h2>Math is hard, let's go shopping</h2>
|
||||
<p>In first grade I learned that 5 > 3 and 2 < 7. Maybe some arrows. 1 -> 2 -> 3. 9 <- 8 <- 7.</p>
|
||||
<p>Triangles man! a^2 + b^2 = c^2</p>
|
||||
<h2>We all like making lists</h2>
|
||||
<p>The above header should be an H2 tag. Now, for a list of fruits:</p>
|
||||
<ul>
|
||||
<li>Red Apples</li>
|
||||
<li>Purple Grapes</li>
|
||||
<li>Green Kiwifruits</li>
|
||||
</ul>
|
||||
<p>Let's get crazy:</p>
|
||||
<ol>
|
||||
<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
|
||||
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
|
||||
mi posuere lectus.</p>
|
||||
<p>Vestibulum enim wisi, viverra nec, fringilla in, laoreet
|
||||
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
|
||||
sit amet velit.</p>
|
||||
</li>
|
||||
<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>What about some code <strong>in</strong> a list? That's insane, right?</p>
|
||||
<ol>
|
||||
<li><p>In Ruby you can map like this:</p>
|
||||
<pre><code> ['a', 'b'].map { |x| x.uppercase }
|
||||
</code></pre>
|
||||
</li>
|
||||
<li><p>In Rails, you can do a shortcut:</p>
|
||||
<pre><code> ['a', 'b'].map(&:uppercase)
|
||||
</code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Some people seem to like definition lists</p>
|
||||
<dl>
|
||||
<dt>Lower cost</dt>
|
||||
<dd>The new version of this product costs significantly less than the previous one!</dd>
|
||||
<dt>Easier to use</dt>
|
||||
<dd>We've changed the product so that it's much easier to use!</dd>
|
||||
</dl>
|
||||
<h2>I am a robot</h2>
|
||||
<p>Maybe you want to print <code>robot</code> to the console 1000 times. Why not?</p>
|
||||
<pre><code>def robot_invasion
|
||||
puts("robot " * 1000)
|
||||
end
|
||||
</code></pre>
|
||||
<p>You see, that was formatted as code because it's been indented by four spaces.</p>
|
||||
<p>How about we throw some angle braces and ampersands in there?</p>
|
||||
<pre><code><div class="footer">
|
||||
&copy; 2004 Foo Corporation
|
||||
</div>
|
||||
</code></pre>
|
||||
<h2>Set in stone</h2>
|
||||
<p>Preformatted blocks are useful for ASCII art:</p>
|
||||
<pre>
|
||||
,-.
|
||||
, ,-. ,-.
|
||||
/ \ ( )-( )
|
||||
\ | ,.>-( )-<
|
||||
\|,' ( )-( )
|
||||
Y ___`-' `-'
|
||||
|/__/ `-'
|
||||
|
|
||||
|
|
||||
| -hrr-
|
||||
___|_____________
|
||||
</pre>
|
||||
<h2>Playing the blame game</h2>
|
||||
<p>If you need to blame someone, the best way to do so is by quoting them:</p>
|
||||
<blockquote><p>I, at any rate, am convinced that He does not throw dice.</p>
|
||||
</blockquote>
|
||||
<p>Or perhaps someone a little less eloquent:</p>
|
||||
<blockquote><p>I wish you'd have given me this written question ahead of time so I
|
||||
could plan for it... I'm sure something will pop into my head here in
|
||||
the midst of this press conference, with all the pressure of trying to
|
||||
come up with answer, but it hadn't yet...</p>
|
||||
<p>I don't want to sound like
|
||||
I have made no mistakes. I'm confident I have. I just haven't - you
|
||||
just put me under the spot here, and maybe I'm not as quick on my feet
|
||||
as I should be in coming up with one.</p>
|
||||
</blockquote>
|
||||
<h2>Table for two</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>ID</th><th>Name</th><th>Rank</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td><td>Tom Preston-Werner</td><td>Awesome</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2>Crazy linking action</h2>
|
||||
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
|
||||
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
|
||||
159
vendor/cebe/markdown/tests/github-data/github-sample.md
vendored
Normal file
159
vendor/cebe/markdown/tests/github-data/github-sample.md
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
GitHub Flavored Markdown
|
||||
================================
|
||||
|
||||
*View the [source of this content](http://github.github.com/github-flavored-markdown/sample_content.html).*
|
||||
|
||||
Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:
|
||||
|
||||
Roses are red
|
||||
Violets are blue
|
||||
|
||||
The next paragraph has the same phrases, but now they are separated by two spaces and a newline character:
|
||||
|
||||
Roses are red
|
||||
Violets are blue
|
||||
|
||||
Oh, and one thing I cannot stand is the mangling of words with multiple underscores in them like perform_complicated_task or do_this_and_do_that_and_another_thing.
|
||||
|
||||
A bit of the GitHub spice
|
||||
-------------------------
|
||||
|
||||
In addition to the changes in the previous section, certain references are auto-linked:
|
||||
|
||||
* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
||||
* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
||||
* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
|
||||
* \#Num: #1
|
||||
* User/#Num: mojombo#1
|
||||
* User/Project#Num: mojombo/god#1
|
||||
|
||||
These are dangerous goodies though, and we need to make sure email addresses don't get mangled:
|
||||
|
||||
My email addy is tom@github.com.
|
||||
|
||||
Math is hard, let's go shopping
|
||||
-------------------------------
|
||||
|
||||
In first grade I learned that 5 > 3 and 2 < 7. Maybe some arrows. 1 -> 2 -> 3. 9 <- 8 <- 7.
|
||||
|
||||
Triangles man! a^2 + b^2 = c^2
|
||||
|
||||
We all like making lists
|
||||
------------------------
|
||||
|
||||
The above header should be an H2 tag. Now, for a list of fruits:
|
||||
|
||||
* Red Apples
|
||||
* Purple Grapes
|
||||
* Green Kiwifruits
|
||||
|
||||
Let's get crazy:
|
||||
|
||||
1. 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.
|
||||
|
||||
2. Suspendisse id sem consectetuer libero luctus adipiscing.
|
||||
|
||||
What about some code **in** a list? That's insane, right?
|
||||
|
||||
1. In Ruby you can map like this:
|
||||
|
||||
['a', 'b'].map { |x| x.uppercase }
|
||||
|
||||
2. In Rails, you can do a shortcut:
|
||||
|
||||
['a', 'b'].map(&:uppercase)
|
||||
|
||||
Some people seem to like definition lists
|
||||
|
||||
<dl>
|
||||
<dt>Lower cost</dt>
|
||||
<dd>The new version of this product costs significantly less than the previous one!</dd>
|
||||
<dt>Easier to use</dt>
|
||||
<dd>We've changed the product so that it's much easier to use!</dd>
|
||||
</dl>
|
||||
|
||||
I am a robot
|
||||
------------
|
||||
|
||||
Maybe you want to print `robot` to the console 1000 times. Why not?
|
||||
|
||||
def robot_invasion
|
||||
puts("robot " * 1000)
|
||||
end
|
||||
|
||||
You see, that was formatted as code because it's been indented by four spaces.
|
||||
|
||||
How about we throw some angle braces and ampersands in there?
|
||||
|
||||
<div class="footer">
|
||||
© 2004 Foo Corporation
|
||||
</div>
|
||||
|
||||
Set in stone
|
||||
------------
|
||||
|
||||
Preformatted blocks are useful for ASCII art:
|
||||
|
||||
<pre>
|
||||
,-.
|
||||
, ,-. ,-.
|
||||
/ \ ( )-( )
|
||||
\ | ,.>-( )-<
|
||||
\|,' ( )-( )
|
||||
Y ___`-' `-'
|
||||
|/__/ `-'
|
||||
|
|
||||
|
|
||||
| -hrr-
|
||||
___|_____________
|
||||
</pre>
|
||||
|
||||
Playing the blame game
|
||||
----------------------
|
||||
|
||||
If you need to blame someone, the best way to do so is by quoting them:
|
||||
|
||||
> I, at any rate, am convinced that He does not throw dice.
|
||||
|
||||
Or perhaps someone a little less eloquent:
|
||||
|
||||
> I wish you'd have given me this written question ahead of time so I
|
||||
> could plan for it... I'm sure something will pop into my head here in
|
||||
> the midst of this press conference, with all the pressure of trying to
|
||||
> come up with answer, but it hadn't yet...
|
||||
>
|
||||
> I don't want to sound like
|
||||
> I have made no mistakes. I'm confident I have. I just haven't - you
|
||||
> just put me under the spot here, and maybe I'm not as quick on my feet
|
||||
> as I should be in coming up with one.
|
||||
|
||||
Table for two
|
||||
-------------
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>ID</th><th>Name</th><th>Rank</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td><td>Tom Preston-Werner</td><td>Awesome</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Crazy linking action
|
||||
--------------------
|
||||
|
||||
I get 10 times more traffic from [Google] [1] than from
|
||||
[Yahoo] [2] or [MSN] [3].
|
||||
|
||||
[1]: http://google.com/ "Google"
|
||||
[2]: http://search.yahoo.com/ "Yahoo Search"
|
||||
[3]: http://search.msn.com/ "MSN Search"
|
||||
5
vendor/cebe/markdown/tests/github-data/issue-33.html
vendored
Normal file
5
vendor/cebe/markdown/tests/github-data/issue-33.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<pre><code>hey, check [this].
|
||||
|
||||
[this]: https://github.com/cebe/markdown
|
||||
</code></pre>
|
||||
<p>is a vaild reference.</p>
|
||||
6
vendor/cebe/markdown/tests/github-data/issue-33.md
vendored
Normal file
6
vendor/cebe/markdown/tests/github-data/issue-33.md
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
```
|
||||
hey, check [this].
|
||||
|
||||
[this]: https://github.com/cebe/markdown
|
||||
```
|
||||
is a vaild reference.
|
||||
21
vendor/cebe/markdown/tests/github-data/issue-38.html
vendored
Normal file
21
vendor/cebe/markdown/tests/github-data/issue-38.html
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<blockquote><p>some text
|
||||
`<code>`
|
||||
// some code
|
||||
\</code>``</p>
|
||||
</blockquote>
|
||||
<blockquote><p>some text</p>
|
||||
<pre><code>// some code
|
||||
</code></pre>
|
||||
</blockquote>
|
||||
<blockquote><p>some text</p>
|
||||
<pre><code>// some code
|
||||
</code></pre>
|
||||
</blockquote>
|
||||
<blockquote><p>some text</p>
|
||||
<pre><code>// some code
|
||||
</code></pre>
|
||||
</blockquote>
|
||||
<blockquote><p>some text</p>
|
||||
</blockquote>
|
||||
<pre><code>// some code
|
||||
</code></pre>
|
||||
26
vendor/cebe/markdown/tests/github-data/issue-38.md
vendored
Normal file
26
vendor/cebe/markdown/tests/github-data/issue-38.md
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
> some text
|
||||
\```
|
||||
// some code
|
||||
\```
|
||||
|
||||
> some text
|
||||
```
|
||||
// some code
|
||||
```
|
||||
|
||||
> some text
|
||||
> ```
|
||||
// some code
|
||||
```
|
||||
|
||||
> some text
|
||||
>
|
||||
> ```
|
||||
// some code
|
||||
```
|
||||
|
||||
> some text
|
||||
|
||||
```
|
||||
// some code
|
||||
```
|
||||
16
vendor/cebe/markdown/tests/github-data/lists.html
vendored
Normal file
16
vendor/cebe/markdown/tests/github-data/lists.html
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<p>Text before list:</p>
|
||||
<ul>
|
||||
<li>item 1,</li>
|
||||
<li>item 2,</li>
|
||||
<li>item 3.</li>
|
||||
</ul>
|
||||
<p>Text after list.</p>
|
||||
<ul>
|
||||
<li>test</li>
|
||||
<li>test<ul>
|
||||
<li>test</li>
|
||||
<li>test</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>test</li>
|
||||
</ul>
|
||||
12
vendor/cebe/markdown/tests/github-data/lists.md
vendored
Normal file
12
vendor/cebe/markdown/tests/github-data/lists.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
Text before list:
|
||||
* item 1,
|
||||
* item 2,
|
||||
* item 3.
|
||||
|
||||
Text after list.
|
||||
|
||||
- test
|
||||
- test
|
||||
- test
|
||||
- test
|
||||
- test
|
||||
5
vendor/cebe/markdown/tests/github-data/non-tables.html
vendored
Normal file
5
vendor/cebe/markdown/tests/github-data/non-tables.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<h2>Non-tables</h2>
|
||||
<p>This line contains two pipes but is not a table. [[yii\widgets\DetailView|DetailView]] widget displays the details of a single data [[yii\widgets\DetailView::$model|model]].</p>
|
||||
<p>the line above contains a space.</p>
|
||||
<p>looks | like | head
|
||||
-:| </p>
|
||||
9
vendor/cebe/markdown/tests/github-data/non-tables.md
vendored
Normal file
9
vendor/cebe/markdown/tests/github-data/non-tables.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
Non-tables
|
||||
----------
|
||||
|
||||
This line contains two pipes but is not a table. [[yii\widgets\DetailView|DetailView]] widget displays the details of a single data [[yii\widgets\DetailView::$model|model]].
|
||||
|
||||
the line above contains a space.
|
||||
|
||||
looks | like | head
|
||||
-:|
|
||||
117
vendor/cebe/markdown/tests/github-data/tables.html
vendored
Normal file
117
vendor/cebe/markdown/tests/github-data/tables.html
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
<h2>Tables</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>First Header </th><th>Second Header</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Content Cell </td><td>Content Cell</td></tr>
|
||||
<tr><td>Content Cell </td><td>Content Cell</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>First Header </th><th>Second Header</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Content Cell </td><td>Content Cell</td></tr>
|
||||
<tr><td>Content Cell </td><td>Content Cell</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Name </th><th>Description</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Help </td><td>Display the help window.</td></tr>
|
||||
<tr><td>Close </td><td>Closes a window</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Name </th><th>Description</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>Help </td><td><strong>Display the</strong> help window.</td></tr>
|
||||
<tr><td>Close </td><td><em>Closes</em> a window</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Default-Align </th><th align="left">Left-Aligned </th><th align="center">Center Aligned </th><th align="right">Right Aligned</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>1 </td><td align="left">col 3 is </td><td align="center">some wordy text </td><td align="right">$1600</td></tr>
|
||||
<tr><td>2 </td><td align="left">col 2 is </td><td align="center">centered </td><td align="right"> $12</td></tr>
|
||||
<tr><td>3 </td><td align="left">zebra stripes </td><td align="center">are neat </td><td align="right"> $1</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Simple </th><th>Table</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>1 </td><td>2</td></tr>
|
||||
<tr><td>3 </td><td>4</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Simple </th><th>Table</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>1 </td><td>2</td></tr>
|
||||
<tr><td>3 </td><td>4</td></tr>
|
||||
<tr><td>3 </td><td>4 |</td></tr>
|
||||
<tr><td>3 </td><td>4 \</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Check <a href="https://github.com/erusev/parsedown/issues/184">https://github.com/erusev/parsedown/issues/184</a> for the following:</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Foo </th><th>Bar </th><th>State</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td><code>Code | Pipe</code> </td><td>Broken </td><td>Blank</td></tr>
|
||||
<tr><td><code>Escaped Code \| Pipe</code> </td><td>Broken </td><td>Blank</td></tr>
|
||||
<tr><td>Escaped | Pipe </td><td>Broken </td><td>Blank</td></tr>
|
||||
<tr><td>Escaped \</td><td>Pipe </td><td>Broken </td><td>Blank</td></tr>
|
||||
<tr><td>Escaped \ </td><td>Pipe </td><td>Broken </td><td>Blank</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th align="left">Simple </th><th>Table</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td align="left">3 </td><td>4</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>3 | 4</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Table </th><th>With </th><th>Empty </th><th>Cells</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td></td><td> </td><td> </td><td></td></tr>
|
||||
<tr><td>a </td><td> </td><td> b </td><td></td></tr>
|
||||
<tr><td></td><td> a </td><td> </td><td> b</td></tr>
|
||||
<tr><td>a </td><td> </td><td> </td><td> b</td></tr>
|
||||
<tr><td></td><td> a </td><td> b </td><td></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th></th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th></th><th></th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td></td><td></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
72
vendor/cebe/markdown/tests/github-data/tables.md
vendored
Normal file
72
vendor/cebe/markdown/tests/github-data/tables.md
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
Tables
|
||||
------
|
||||
|
||||
First Header | Second Header
|
||||
------------- | -------------
|
||||
Content Cell | Content Cell
|
||||
Content Cell | Content Cell
|
||||
|
||||
| First Header | Second Header |
|
||||
| ------------- | ------------- |
|
||||
| Content Cell | Content Cell |
|
||||
| Content Cell | Content Cell |
|
||||
|
||||
| Name | Description |
|
||||
| ------------- | ----------- |
|
||||
| Help | Display the help window.|
|
||||
| Close | Closes a window |
|
||||
|
||||
| Name | Description |
|
||||
| ------------- | ----------- |
|
||||
| Help | **Display the** help window.|
|
||||
| Close | _Closes_ a window |
|
||||
|
||||
| Default-Align | Left-Aligned | Center Aligned | Right Aligned |
|
||||
| ------------- | :------------ |:---------------:| -----:|
|
||||
| 1 | col 3 is | some wordy text | $1600 |
|
||||
| 2 | col 2 is | centered | $12 |
|
||||
| 3 | zebra stripes | are neat | $1 |
|
||||
|
||||
|
||||
Simple | Table
|
||||
------ | -----
|
||||
1 | 2
|
||||
3 | 4
|
||||
|
||||
| Simple | Table |
|
||||
| ------ | ----- |
|
||||
| 1 | 2 |
|
||||
| 3 | 4 |
|
||||
| 3 | 4 \|
|
||||
| 3 | 4 \\|
|
||||
|
||||
Check https://github.com/erusev/parsedown/issues/184 for the following:
|
||||
|
||||
Foo | Bar | State
|
||||
------ | ------ | -----
|
||||
`Code | Pipe` | Broken | Blank
|
||||
`Escaped Code \| Pipe` | Broken | Blank
|
||||
Escaped \| Pipe | Broken | Blank
|
||||
Escaped \\| Pipe | Broken | Blank
|
||||
Escaped \\ | Pipe | Broken | Blank
|
||||
|
||||
| Simple | Table |
|
||||
| :----- | ----- |
|
||||
| 3 | 4 |
|
||||
3 | 4
|
||||
|
||||
| Table | With | Empty | Cells |
|
||||
| ----- | ---- | ----- | ----- |
|
||||
| | | | |
|
||||
| a | | b | |
|
||||
| | a | | b |
|
||||
| a | | | b |
|
||||
| | a | b | |
|
||||
|
||||
|
|
||||
-- | --
|
||||
|
|
||||
|
||||
| | |
|
||||
| - | - |
|
||||
| | |
|
||||
8
vendor/cebe/markdown/tests/github-data/test_precedence.html
vendored
Normal file
8
vendor/cebe/markdown/tests/github-data/test_precedence.html
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<p>Not a headline but a code block:</p>
|
||||
<pre><code>---
|
||||
</code></pre>
|
||||
<p>Not a headline but two HR:</p>
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
14
vendor/cebe/markdown/tests/github-data/test_precedence.md
vendored
Normal file
14
vendor/cebe/markdown/tests/github-data/test_precedence.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Not a headline but a code block:
|
||||
|
||||
```
|
||||
---
|
||||
```
|
||||
|
||||
Not a headline but two HR:
|
||||
|
||||
***
|
||||
---
|
||||
|
||||
---
|
||||
***
|
||||
|
||||
16
vendor/cebe/markdown/tests/github-data/url.html
vendored
Normal file
16
vendor/cebe/markdown/tests/github-data/url.html
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<p>here is the url: <a href="http://www.cebe.cc/">http://www.cebe.cc/</a></p>
|
||||
<p>here is the url: <a href="http://www.cebe.cc">http://www.cebe.cc</a></p>
|
||||
<p>here is the url: <a href="http://www.cebe.cc/">http://www.cebe.cc/</a> and some text</p>
|
||||
<p>using http is cool and http:// is the beginning of an url.</p>
|
||||
<p>link should be url decoded: <a href="http://en.wikipedia.org/wiki/Mase_%28disambiguation%29">http://en.wikipedia.org/wiki/Mase_(disambiguation)</a></p>
|
||||
<p>link in the end of the sentence: See this <a href="http://example.com/">http://example.com/</a>.</p>
|
||||
<p>this one is in parenthesis (<a href="http://example.com/">http://example.com/</a>).</p>
|
||||
<p>this one is in parenthesis (<a href="http://example.com:80/?id=1,2,3">http://example.com:80/?id=1,2,3</a>).</p>
|
||||
<p>... (see <a href="http://en.wikipedia.org/wiki/Port_(computer_networking)">http://en.wikipedia.org/wiki/Port_(computer_networking)</a>).</p>
|
||||
<p>... (see <a href="https://en.wikipedia.org/wiki/Port_(computer_networking)_more">https://en.wikipedia.org/wiki/Port_(computer_networking)_more</a>).</p>
|
||||
<p>... (see <a href="https://en.wikipedia.org/wiki/Port_(computer_networking)_more">https://en.wikipedia.org/wiki/Port_(computer_networking)_more</a>). ... (see <a href="http://en.wikipedia.org/wiki/Port_(computer_networking)">http://en.wikipedia.org/wiki/Port_(computer_networking)</a>).</p>
|
||||
<p>... (see <a href="https://en.wikipedia.org/wiki/Port_(computer_networking)_more">https://en.wikipedia.org/wiki/Port_(computer_networking)_more</a>)....(<a href="http://en.wikipedia.org/wiki/Port_(computer_networking)">http://en.wikipedia.org/wiki/Port_(computer_networking)</a>).</p>
|
||||
<p>... (see <a href="http://en.wikipedia.org/wiki/Port">http://en.wikipedia.org/wiki/Port</a>)</p>
|
||||
<p>... (see <a href="http://en.wikipedia.org/wiki/Port">http://en.wikipedia.org/wiki/Port</a>).</p>
|
||||
<p><a href="http://www.cebe.cc">http://www.cebe.cc</a>, <a href="http://www.cebe.net">http://www.cebe.net</a>, and so on</p>
|
||||
<p><a href="http://www.google.com/">link to http://www.google.com/</a></p>
|
||||
31
vendor/cebe/markdown/tests/github-data/url.md
vendored
Normal file
31
vendor/cebe/markdown/tests/github-data/url.md
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
here is the url: http://www.cebe.cc/
|
||||
|
||||
here is the url: http://www.cebe.cc
|
||||
|
||||
here is the url: http://www.cebe.cc/ and some text
|
||||
|
||||
using http is cool and http:// is the beginning of an url.
|
||||
|
||||
link should be url decoded: http://en.wikipedia.org/wiki/Mase_%28disambiguation%29
|
||||
|
||||
link in the end of the sentence: See this http://example.com/.
|
||||
|
||||
this one is in parenthesis (http://example.com/).
|
||||
|
||||
this one is in parenthesis (http://example.com:80/?id=1,2,3).
|
||||
|
||||
... (see http://en.wikipedia.org/wiki/Port_(computer_networking)).
|
||||
|
||||
... (see https://en.wikipedia.org/wiki/Port_(computer_networking)_more).
|
||||
|
||||
... (see https://en.wikipedia.org/wiki/Port_(computer_networking)_more). ... (see http://en.wikipedia.org/wiki/Port_(computer_networking)).
|
||||
|
||||
... (see https://en.wikipedia.org/wiki/Port_(computer_networking)_more)....(http://en.wikipedia.org/wiki/Port_(computer_networking)).
|
||||
|
||||
... (see http://en.wikipedia.org/wiki/Port)
|
||||
|
||||
... (see http://en.wikipedia.org/wiki/Port).
|
||||
|
||||
http://www.cebe.cc, http://www.cebe.net, and so on
|
||||
|
||||
[link to http://www.google.com/](http://www.google.com/)
|
||||
Reference in New Issue
Block a user