Tagessieger Auswertung
This commit is contained in:
parent
bc5ec5edce
commit
0512bde392
6032 changed files with 674969 additions and 33 deletions
16
pfosten/vendor/erusev/parsedown/.travis.yml
vendored
Normal file
16
pfosten/vendor/erusev/parsedown/.travis.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
language: php
|
||||
|
||||
php:
|
||||
- 7.1
|
||||
- 7.0
|
||||
- 5.6
|
||||
- 5.5
|
||||
- 5.4
|
||||
- 5.3
|
||||
- hhvm
|
||||
- hhvm-nightly
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- php: hhvm-nightly
|
||||
20
pfosten/vendor/erusev/parsedown/LICENSE.txt
vendored
Normal file
20
pfosten/vendor/erusev/parsedown/LICENSE.txt
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Emanuil Rusev, erusev.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
1548
pfosten/vendor/erusev/parsedown/Parsedown.php
vendored
Normal file
1548
pfosten/vendor/erusev/parsedown/Parsedown.php
vendored
Normal file
File diff suppressed because it is too large
Load diff
56
pfosten/vendor/erusev/parsedown/README.md
vendored
Normal file
56
pfosten/vendor/erusev/parsedown/README.md
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
> You might also like [Caret](http://caret.io?ref=parsedown) - our Markdown editor for Mac / Windows / Linux.
|
||||
|
||||
## Parsedown
|
||||
|
||||
[](https://travis-ci.org/erusev/parsedown)
|
||||
<!--[](https://packagist.org/packages/erusev/parsedown)-->
|
||||
|
||||
Better Markdown Parser in PHP
|
||||
|
||||
[Demo](http://parsedown.org/demo) |
|
||||
[Benchmarks](http://parsedown.org/speed) |
|
||||
[Tests](http://parsedown.org/tests/) |
|
||||
[Documentation](https://github.com/erusev/parsedown/wiki/)
|
||||
|
||||
### Features
|
||||
|
||||
* One File
|
||||
* Super Fast
|
||||
* Extensible
|
||||
* [GitHub flavored](https://help.github.com/articles/github-flavored-markdown)
|
||||
* Tested in 5.3 to 7.1 and in HHVM
|
||||
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra)
|
||||
|
||||
### Installation
|
||||
|
||||
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
|
||||
|
||||
### Example
|
||||
|
||||
``` php
|
||||
$Parsedown = new Parsedown();
|
||||
|
||||
echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
|
||||
```
|
||||
|
||||
More examples in [the wiki](https://github.com/erusev/parsedown/wiki/) and in [this video tutorial](http://youtu.be/wYZBY8DEikI).
|
||||
|
||||
### Questions
|
||||
|
||||
**How does Parsedown work?**
|
||||
|
||||
It tries to read Markdown like a human. First, it looks at the lines. It’s interested in how the lines start. This helps it recognise blocks. It knows, for example, that if a line starts with a `-` then perhaps it belongs to a list. Once it recognises the blocks, it continues to the content. As it reads, it watches out for special characters. This helps it recognise inline elements (or inlines).
|
||||
|
||||
We call this approach "line based". We believe that Parsedown is the first Markdown parser to use it. Since the release of Parsedown, other developers have used the same approach to develop other Markdown parsers in PHP and in other languages.
|
||||
|
||||
**Is it compliant with CommonMark?**
|
||||
|
||||
It passes most of the CommonMark tests. Most of the tests that don't pass deal with cases that are quite uncommon. Still, as CommonMark matures, compliance should improve.
|
||||
|
||||
**Who uses it?**
|
||||
|
||||
[phpDocumentor](http://www.phpdoc.org/), [October CMS](http://octobercms.com/), [Bolt CMS](http://bolt.cm/), [Kirby CMS](http://getkirby.com/), [Grav CMS](http://getgrav.org/), [Statamic CMS](http://www.statamic.com/), [Herbie CMS](http://www.getherbie.org/), [RaspberryPi.org](http://www.raspberrypi.org/), [Symfony demo](https://github.com/symfony/symfony-demo) and [more](https://packagist.org/packages/erusev/parsedown/dependents).
|
||||
|
||||
**How can I help?**
|
||||
|
||||
Use it, star it, share it and if you feel generous, [donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).
|
||||
21
pfosten/vendor/erusev/parsedown/composer.json
vendored
Normal file
21
pfosten/vendor/erusev/parsedown/composer.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "erusev/parsedown",
|
||||
"description": "Parser for Markdown.",
|
||||
"keywords": ["markdown", "parser"],
|
||||
"homepage": "http://parsedown.org",
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Emanuil Rusev",
|
||||
"email": "hello@erusev.com",
|
||||
"homepage": "http://erusev.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {"Parsedown": ""}
|
||||
}
|
||||
}
|
||||
8
pfosten/vendor/erusev/parsedown/phpunit.xml.dist
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/phpunit.xml.dist
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit bootstrap="test/bootstrap.php" colors="true">
|
||||
<testsuites>
|
||||
<testsuite>
|
||||
<file>test/ParsedownTest.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
74
pfosten/vendor/erusev/parsedown/test/CommonMarkTest.php
vendored
Normal file
74
pfosten/vendor/erusev/parsedown/test/CommonMarkTest.php
vendored
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Test Parsedown against the CommonMark spec.
|
||||
*
|
||||
* Some code based on the original JavaScript test runner by jgm.
|
||||
*
|
||||
* @link http://commonmark.org/ CommonMark
|
||||
* @link http://git.io/8WtRvQ JavaScript test runner
|
||||
*/
|
||||
class CommonMarkTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
const SPEC_URL = 'https://raw.githubusercontent.com/jgm/stmd/master/spec.txt';
|
||||
|
||||
/**
|
||||
* @dataProvider data
|
||||
* @param $section
|
||||
* @param $markdown
|
||||
* @param $expectedHtml
|
||||
*/
|
||||
function test_($section, $markdown, $expectedHtml)
|
||||
{
|
||||
$Parsedown = new Parsedown();
|
||||
$Parsedown->setUrlsLinked(false);
|
||||
|
||||
$actualHtml = $Parsedown->text($markdown);
|
||||
$actualHtml = $this->normalizeMarkup($actualHtml);
|
||||
|
||||
$this->assertEquals($expectedHtml, $actualHtml);
|
||||
}
|
||||
|
||||
function data()
|
||||
{
|
||||
$spec = file_get_contents(self::SPEC_URL);
|
||||
$spec = strstr($spec, '<!-- END TESTS -->', true);
|
||||
|
||||
$tests = array();
|
||||
$currentSection = '';
|
||||
|
||||
preg_replace_callback(
|
||||
'/^\.\n([\s\S]*?)^\.\n([\s\S]*?)^\.$|^#{1,6} *(.*)$/m',
|
||||
function($matches) use ( & $tests, & $currentSection, & $testCount) {
|
||||
if (isset($matches[3]) and $matches[3]) {
|
||||
$currentSection = $matches[3];
|
||||
} else {
|
||||
$testCount++;
|
||||
$markdown = $matches[1];
|
||||
$markdown = preg_replace('/→/', "\t", $markdown);
|
||||
$expectedHtml = $matches[2];
|
||||
$expectedHtml = $this->normalizeMarkup($expectedHtml);
|
||||
$tests []= array(
|
||||
$currentSection, # section
|
||||
$markdown, # markdown
|
||||
$expectedHtml, # html
|
||||
);
|
||||
}
|
||||
},
|
||||
$spec
|
||||
);
|
||||
|
||||
return $tests;
|
||||
}
|
||||
|
||||
private function normalizeMarkup($markup)
|
||||
{
|
||||
$markup = preg_replace("/\n+/", "\n", $markup);
|
||||
$markup = preg_replace('/^\s+/m', '', $markup);
|
||||
$markup = preg_replace('/^((?:<[\w]+>)+)\n/m', '$1', $markup);
|
||||
$markup = preg_replace('/\n((?:<\/[\w]+>)+)$/m', '$1', $markup);
|
||||
$markup = trim($markup);
|
||||
|
||||
return $markup;
|
||||
}
|
||||
}
|
||||
159
pfosten/vendor/erusev/parsedown/test/ParsedownTest.php
vendored
Normal file
159
pfosten/vendor/erusev/parsedown/test/ParsedownTest.php
vendored
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
<?php
|
||||
|
||||
class ParsedownTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
final function __construct($name = null, array $data = array(), $dataName = '')
|
||||
{
|
||||
$this->dirs = $this->initDirs();
|
||||
$this->Parsedown = $this->initParsedown();
|
||||
|
||||
parent::__construct($name, $data, $dataName);
|
||||
}
|
||||
|
||||
private $dirs, $Parsedown;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function initDirs()
|
||||
{
|
||||
$dirs []= dirname(__FILE__).'/data/';
|
||||
|
||||
return $dirs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Parsedown
|
||||
*/
|
||||
protected function initParsedown()
|
||||
{
|
||||
$Parsedown = new Parsedown();
|
||||
|
||||
return $Parsedown;
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider data
|
||||
* @param $test
|
||||
* @param $dir
|
||||
*/
|
||||
function test_($test, $dir)
|
||||
{
|
||||
$markdown = file_get_contents($dir . $test . '.md');
|
||||
|
||||
$expectedMarkup = file_get_contents($dir . $test . '.html');
|
||||
|
||||
$expectedMarkup = str_replace("\r\n", "\n", $expectedMarkup);
|
||||
$expectedMarkup = str_replace("\r", "\n", $expectedMarkup);
|
||||
|
||||
$actualMarkup = $this->Parsedown->text($markdown);
|
||||
|
||||
$this->assertEquals($expectedMarkup, $actualMarkup);
|
||||
}
|
||||
|
||||
function data()
|
||||
{
|
||||
$data = array();
|
||||
|
||||
foreach ($this->dirs as $dir)
|
||||
{
|
||||
$Folder = new DirectoryIterator($dir);
|
||||
|
||||
foreach ($Folder as $File)
|
||||
{
|
||||
/** @var $File DirectoryIterator */
|
||||
|
||||
if ( ! $File->isFile())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$filename = $File->getFilename();
|
||||
|
||||
$extension = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
|
||||
if ($extension !== 'md')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$basename = $File->getBasename('.md');
|
||||
|
||||
if (file_exists($dir . $basename . '.html'))
|
||||
{
|
||||
$data []= array($basename, $dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function test_no_markup()
|
||||
{
|
||||
$markdownWithHtml = <<<MARKDOWN_WITH_MARKUP
|
||||
<div>_content_</div>
|
||||
|
||||
sparse:
|
||||
|
||||
<div>
|
||||
<div class="inner">
|
||||
_content_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
paragraph
|
||||
|
||||
<style type="text/css">
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
comment
|
||||
|
||||
<!-- html comment -->
|
||||
MARKDOWN_WITH_MARKUP;
|
||||
|
||||
$expectedHtml = <<<EXPECTED_HTML
|
||||
<p><div><em>content</em></div></p>
|
||||
<p>sparse:</p>
|
||||
<p><div>
|
||||
<div class="inner">
|
||||
<em>content</em>
|
||||
</div>
|
||||
</div></p>
|
||||
<p>paragraph</p>
|
||||
<p><style type="text/css">
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
</style></p>
|
||||
<p>comment</p>
|
||||
<p><!-- html comment --></p>
|
||||
EXPECTED_HTML;
|
||||
$parsedownWithNoMarkup = new Parsedown();
|
||||
$parsedownWithNoMarkup->setMarkupEscaped(true);
|
||||
$this->assertEquals($expectedHtml, $parsedownWithNoMarkup->text($markdownWithHtml));
|
||||
}
|
||||
|
||||
public function testLateStaticBinding()
|
||||
{
|
||||
include __DIR__ . '/TestParsedown.php';
|
||||
|
||||
$parsedown = Parsedown::instance();
|
||||
$this->assertInstanceOf('Parsedown', $parsedown);
|
||||
|
||||
// After instance is already called on Parsedown
|
||||
// subsequent calls with the same arguments return the same instance
|
||||
$sameParsedown = TestParsedown::instance();
|
||||
$this->assertInstanceOf('Parsedown', $sameParsedown);
|
||||
$this->assertSame($parsedown, $sameParsedown);
|
||||
|
||||
$testParsedown = TestParsedown::instance('test late static binding');
|
||||
$this->assertInstanceOf('TestParsedown', $testParsedown);
|
||||
|
||||
$sameInstanceAgain = TestParsedown::instance('test late static binding');
|
||||
$this->assertSame($testParsedown, $sameInstanceAgain);
|
||||
}
|
||||
}
|
||||
5
pfosten/vendor/erusev/parsedown/test/TestParsedown.php
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/TestParsedown.php
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
class TestParsedown extends Parsedown
|
||||
{
|
||||
}
|
||||
7
pfosten/vendor/erusev/parsedown/test/bootstrap.php
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/bootstrap.php
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
include 'Parsedown.php';
|
||||
|
||||
if ( ! class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) {
|
||||
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
|
||||
}
|
||||
18
pfosten/vendor/erusev/parsedown/test/data/aesthetic_table.html
vendored
Normal file
18
pfosten/vendor/erusev/parsedown/test/data/aesthetic_table.html
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>header 1</th>
|
||||
<th>header 2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>cell 1.1</td>
|
||||
<td>cell 1.2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell 2.1</td>
|
||||
<td>cell 2.2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/aesthetic_table.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/aesthetic_table.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
| header 1 | header 2 |
|
||||
| -------- | -------- |
|
||||
| cell 1.1 | cell 1.2 |
|
||||
| cell 2.1 | cell 2.2 |
|
||||
21
pfosten/vendor/erusev/parsedown/test/data/aligned_table.html
vendored
Normal file
21
pfosten/vendor/erusev/parsedown/test/data/aligned_table.html
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: left;">header 1</th>
|
||||
<th style="text-align: center;">header 2</th>
|
||||
<th style="text-align: right;">header 2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: left;">cell 1.1</td>
|
||||
<td style="text-align: center;">cell 1.2</td>
|
||||
<td style="text-align: right;">cell 1.3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">cell 2.1</td>
|
||||
<td style="text-align: center;">cell 2.2</td>
|
||||
<td style="text-align: right;">cell 2.3</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/aligned_table.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/aligned_table.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
| header 1 | header 2 | header 2 |
|
||||
| :------- | :------: | -------: |
|
||||
| cell 1.1 | cell 1.2 | cell 1.3 |
|
||||
| cell 2.1 | cell 2.2 | cell 2.3 |
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/atx_heading.html
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/atx_heading.html
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<h1>h1</h1>
|
||||
<h2>h2</h2>
|
||||
<h3>h3</h3>
|
||||
<h4>h4</h4>
|
||||
<h5>h5</h5>
|
||||
<h6>h6</h6>
|
||||
<p>####### not a heading</p>
|
||||
<h1>closed h1</h1>
|
||||
<p>#</p>
|
||||
17
pfosten/vendor/erusev/parsedown/test/data/atx_heading.md
vendored
Normal file
17
pfosten/vendor/erusev/parsedown/test/data/atx_heading.md
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# h1
|
||||
|
||||
## h2
|
||||
|
||||
### h3
|
||||
|
||||
#### h4
|
||||
|
||||
##### h5
|
||||
|
||||
###### h6
|
||||
|
||||
####### not a heading
|
||||
|
||||
# closed h1 #
|
||||
|
||||
#
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/automatic_link.html
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/automatic_link.html
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p><a href="http://example.com">http://example.com</a></p>
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/automatic_link.md
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/automatic_link.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<http://example.com>
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/block-level_html.html
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/block-level_html.html
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<div>_content_</div>
|
||||
<p>paragraph</p>
|
||||
<div>
|
||||
<div class="inner">
|
||||
_content_
|
||||
</div>
|
||||
</div>
|
||||
<style type="text/css">
|
||||
p {color: #789;}
|
||||
</style>
|
||||
<div>
|
||||
<a href="/">home</a></div>
|
||||
16
pfosten/vendor/erusev/parsedown/test/data/block-level_html.md
vendored
Normal file
16
pfosten/vendor/erusev/parsedown/test/data/block-level_html.md
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<div>_content_</div>
|
||||
|
||||
paragraph
|
||||
|
||||
<div>
|
||||
<div class="inner">
|
||||
_content_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
p {color: #789;}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<a href="/">home</a></div>
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/code_block.html
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/code_block.html
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<pre><code><?php
|
||||
|
||||
$message = 'Hello World!';
|
||||
echo $message;</code></pre>
|
||||
<hr />
|
||||
<pre><code>> not a quote
|
||||
- not a list item
|
||||
[not a reference]: http://foo.com</code></pre>
|
||||
10
pfosten/vendor/erusev/parsedown/test/data/code_block.md
vendored
Normal file
10
pfosten/vendor/erusev/parsedown/test/data/code_block.md
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
$message = 'Hello World!';
|
||||
echo $message;
|
||||
|
||||
---
|
||||
|
||||
> not a quote
|
||||
- not a list item
|
||||
[not a reference]: http://foo.com
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/code_span.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/code_span.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p>a <code>code span</code></p>
|
||||
<p><code>this is also a codespan</code> trailing text</p>
|
||||
<p><code>and look at this one!</code></p>
|
||||
<p>single backtick in a code span: <code>`</code></p>
|
||||
<p>backtick-delimited string in a code span: <code>`foo`</code></p>
|
||||
<p><code>sth `` sth</code></p>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/code_span.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/code_span.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
a `code span`
|
||||
|
||||
`this is also a codespan` trailing text
|
||||
|
||||
`and look at this one!`
|
||||
|
||||
single backtick in a code span: `` ` ``
|
||||
|
||||
backtick-delimited string in a code span: `` `foo` ``
|
||||
|
||||
`sth `` sth`
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/compound_blockquote.html
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/compound_blockquote.html
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<blockquote>
|
||||
<h2>header</h2>
|
||||
<p>paragraph</p>
|
||||
<ul>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<p>paragraph</p>
|
||||
</blockquote>
|
||||
10
pfosten/vendor/erusev/parsedown/test/data/compound_blockquote.md
vendored
Normal file
10
pfosten/vendor/erusev/parsedown/test/data/compound_blockquote.md
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
> header
|
||||
> ------
|
||||
>
|
||||
> paragraph
|
||||
>
|
||||
> - li
|
||||
>
|
||||
> ---
|
||||
>
|
||||
> paragraph
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/compound_emphasis.html
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/compound_emphasis.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<p><em><code>code</code></em> <strong><code>code</code></strong></p>
|
||||
<p><em><code>code</code><strong><code>code</code></strong><code>code</code></em></p>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/compound_emphasis.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/compound_emphasis.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
_`code`_ __`code`__
|
||||
|
||||
*`code`**`code`**`code`*
|
||||
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/compound_list.html
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/compound_list.html
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<ul>
|
||||
<li>
|
||||
<p>paragraph</p>
|
||||
<p>paragraph</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>paragraph</p>
|
||||
<blockquote>
|
||||
<p>quote</p>
|
||||
</blockquote>
|
||||
</li>
|
||||
</ul>
|
||||
7
pfosten/vendor/erusev/parsedown/test/data/compound_list.md
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/data/compound_list.md
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
- paragraph
|
||||
|
||||
paragraph
|
||||
|
||||
- paragraph
|
||||
|
||||
> quote
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/deeply_nested_list.html
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/deeply_nested_list.html
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<ul>
|
||||
<li>li
|
||||
<ul>
|
||||
<li>li
|
||||
<ul>
|
||||
<li>li</li>
|
||||
<li>li</li>
|
||||
</ul></li>
|
||||
<li>li</li>
|
||||
</ul></li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/deeply_nested_list.md
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/deeply_nested_list.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- li
|
||||
- li
|
||||
- li
|
||||
- li
|
||||
- li
|
||||
- li
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/em_strong.html
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/em_strong.html
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<p><strong><em>em strong</em></strong></p>
|
||||
<p><strong><em>em strong</em> strong</strong></p>
|
||||
<p><strong>strong <em>em strong</em></strong></p>
|
||||
<p><strong>strong <em>em strong</em> strong</strong></p>
|
||||
<p><strong><em>em strong</em></strong></p>
|
||||
<p><strong><em>em strong</em> strong</strong></p>
|
||||
<p><strong>strong <em>em strong</em></strong></p>
|
||||
<p><strong>strong <em>em strong</em> strong</strong></p>
|
||||
15
pfosten/vendor/erusev/parsedown/test/data/em_strong.md
vendored
Normal file
15
pfosten/vendor/erusev/parsedown/test/data/em_strong.md
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
___em strong___
|
||||
|
||||
___em strong_ strong__
|
||||
|
||||
__strong _em strong___
|
||||
|
||||
__strong _em strong_ strong__
|
||||
|
||||
***em strong***
|
||||
|
||||
***em strong* strong**
|
||||
|
||||
**strong *em strong***
|
||||
|
||||
**strong *em strong* strong**
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/email.html
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/email.html
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p>my email is <a href="mailto:me@example.com">me@example.com</a></p>
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/email.md
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/email.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
my email is <me@example.com>
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/emphasis.html
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/emphasis.html
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<p><em>underscore</em>, <em>asterisk</em>, <em>one two</em>, <em>three four</em>, <em>a</em>, <em>b</em></p>
|
||||
<p><strong>strong</strong> and <em>em</em> and <strong>strong</strong> and <em>em</em></p>
|
||||
<p><em>line
|
||||
line
|
||||
line</em></p>
|
||||
<p>this_is_not_an_emphasis</p>
|
||||
<p>an empty emphasis __ ** is not an emphasis</p>
|
||||
<p>*mixed *<em>double and</em> single asterisk** spans</p>
|
||||
13
pfosten/vendor/erusev/parsedown/test/data/emphasis.md
vendored
Normal file
13
pfosten/vendor/erusev/parsedown/test/data/emphasis.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
_underscore_, *asterisk*, _one two_, *three four*, _a_, *b*
|
||||
|
||||
**strong** and *em* and **strong** and *em*
|
||||
|
||||
_line
|
||||
line
|
||||
line_
|
||||
|
||||
this_is_not_an_emphasis
|
||||
|
||||
an empty emphasis __ ** is not an emphasis
|
||||
|
||||
*mixed **double and* single asterisk** spans
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/escaping.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/escaping.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p>escaped *emphasis*.</p>
|
||||
<p><code>escaped \*emphasis\* in a code span</code></p>
|
||||
<pre><code>escaped \*emphasis\* in a code block</code></pre>
|
||||
<p>\ ` * _ { } [ ] ( ) > # + - . !</p>
|
||||
<p><em>one_two</em> <strong>one_two</strong></p>
|
||||
<p><em>one*two</em> <strong>one*two</strong></p>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/escaping.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/escaping.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
escaped \*emphasis\*.
|
||||
|
||||
`escaped \*emphasis\* in a code span`
|
||||
|
||||
escaped \*emphasis\* in a code block
|
||||
|
||||
\\ \` \* \_ \{ \} \[ \] \( \) \> \# \+ \- \. \!
|
||||
|
||||
_one\_two_ __one\_two__
|
||||
|
||||
*one\*two* **one\*two**
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/fenced_code_block.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/fenced_code_block.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<pre><code><?php
|
||||
|
||||
$message = 'fenced code block';
|
||||
echo $message;</code></pre>
|
||||
<pre><code>tilde</code></pre>
|
||||
<pre><code class="language-php">echo 'language identifier';</code></pre>
|
||||
14
pfosten/vendor/erusev/parsedown/test/data/fenced_code_block.md
vendored
Normal file
14
pfosten/vendor/erusev/parsedown/test/data/fenced_code_block.md
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
```
|
||||
<?php
|
||||
|
||||
$message = 'fenced code block';
|
||||
echo $message;
|
||||
```
|
||||
|
||||
~~~
|
||||
tilde
|
||||
~~~
|
||||
|
||||
```php
|
||||
echo 'language identifier';
|
||||
```
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/horizontal_rule.html
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/horizontal_rule.html
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
<hr />
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/horizontal_rule.md
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/horizontal_rule.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
- - -
|
||||
|
||||
- - -
|
||||
|
||||
***
|
||||
|
||||
___
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/html_comment.html
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/html_comment.html
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!-- single line -->
|
||||
<p>paragraph</p>
|
||||
<!--
|
||||
multiline -->
|
||||
<p>paragraph</p>
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/html_comment.md
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/html_comment.md
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<!-- single line -->
|
||||
|
||||
paragraph
|
||||
|
||||
<!--
|
||||
multiline -->
|
||||
|
||||
paragraph
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/html_entity.html
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/html_entity.html
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p>& © {</p>
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/html_entity.md
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/html_entity.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
& © {
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/image_reference.html
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/image_reference.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<p><img src="/md.png" alt="Markdown Logo" /></p>
|
||||
<p>![missing reference]</p>
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/image_reference.md
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/image_reference.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
![Markdown Logo][image]
|
||||
|
||||
[image]: /md.png
|
||||
|
||||
![missing reference]
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/image_title.html
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/image_title.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<p><img src="/md.png" alt="alt" title="title" /></p>
|
||||
<p><img src="/md.png" alt="blank title" title="" /></p>
|
||||
3
pfosten/vendor/erusev/parsedown/test/data/image_title.md
vendored
Normal file
3
pfosten/vendor/erusev/parsedown/test/data/image_title.md
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||

|
||||
|
||||

|
||||
4
pfosten/vendor/erusev/parsedown/test/data/implicit_reference.html
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/implicit_reference.html
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<p>an <a href="http://example.com">implicit</a> reference link</p>
|
||||
<p>an <a href="http://example.com">implicit</a> reference link with an empty link definition</p>
|
||||
<p>an <a href="http://example.com">implicit</a> reference link followed by <a href="http://cnn.com">another</a></p>
|
||||
<p>an <a href="http://example.com" title="Example">explicit</a> reference link with a title</p>
|
||||
13
pfosten/vendor/erusev/parsedown/test/data/implicit_reference.md
vendored
Normal file
13
pfosten/vendor/erusev/parsedown/test/data/implicit_reference.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
an [implicit] reference link
|
||||
|
||||
[implicit]: http://example.com
|
||||
|
||||
an [implicit][] reference link with an empty link definition
|
||||
|
||||
an [implicit][] reference link followed by [another][]
|
||||
|
||||
[another]: http://cnn.com
|
||||
|
||||
an [explicit][example] reference link with a title
|
||||
|
||||
[example]: http://example.com "Example"
|
||||
7
pfosten/vendor/erusev/parsedown/test/data/inline_link.html
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/data/inline_link.html
vendored
Normal file
File diff suppressed because one or more lines are too long
13
pfosten/vendor/erusev/parsedown/test/data/inline_link.md
vendored
Normal file
13
pfosten/vendor/erusev/parsedown/test/data/inline_link.md
vendored
Normal file
File diff suppressed because one or more lines are too long
6
pfosten/vendor/erusev/parsedown/test/data/inline_link_title.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/inline_link_title.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p><a href="http://example.com" title="Title">single quotes</a></p>
|
||||
<p><a href="http://example.com" title="Title">double quotes</a></p>
|
||||
<p><a href="http://example.com" title="">single quotes blank</a></p>
|
||||
<p><a href="http://example.com" title="">double quotes blank</a></p>
|
||||
<p><a href="http://example.com" title="2 Words">space</a></p>
|
||||
<p><a href="http://example.com/url-(parentheses)" title="Title">parentheses</a></p>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/inline_link_title.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/inline_link_title.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[single quotes](http://example.com 'Title')
|
||||
|
||||
[double quotes](http://example.com "Title")
|
||||
|
||||
[single quotes blank](http://example.com '')
|
||||
|
||||
[double quotes blank](http://example.com "")
|
||||
|
||||
[space](http://example.com "2 Words")
|
||||
|
||||
[parentheses](http://example.com/url-(parentheses) "Title")
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/inline_title.html
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/inline_title.html
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p><a href="http://example.com" title="Example">single quotes</a> and <a href="http://example.com" title="Example">double quotes</a></p>
|
||||
1
pfosten/vendor/erusev/parsedown/test/data/inline_title.md
vendored
Normal file
1
pfosten/vendor/erusev/parsedown/test/data/inline_title.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
[single quotes](http://example.com 'Example') and [double quotes](http://example.com "Example")
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/lazy_blockquote.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/lazy_blockquote.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<blockquote>
|
||||
<p>quote
|
||||
the rest of it</p>
|
||||
<p>another paragraph
|
||||
the rest of it</p>
|
||||
</blockquote>
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/lazy_blockquote.md
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/lazy_blockquote.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
> quote
|
||||
the rest of it
|
||||
|
||||
> another paragraph
|
||||
the rest of it
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/lazy_list.html
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/lazy_list.html
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<ul>
|
||||
<li>li
|
||||
the rest of it</li>
|
||||
</ul>
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/lazy_list.md
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/lazy_list.md
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- li
|
||||
the rest of it
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/line_break.html
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/line_break.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<p>line<br />
|
||||
line</p>
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/line_break.md
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/line_break.md
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
line
|
||||
line
|
||||
7
pfosten/vendor/erusev/parsedown/test/data/multiline_list_paragraph.html
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/data/multiline_list_paragraph.html
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
<p>line
|
||||
line</p>
|
||||
</li>
|
||||
</ul>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/multiline_list_paragraph.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/multiline_list_paragraph.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- li
|
||||
|
||||
line
|
||||
line
|
||||
10
pfosten/vendor/erusev/parsedown/test/data/nested_block-level_html.html
vendored
Normal file
10
pfosten/vendor/erusev/parsedown/test/data/nested_block-level_html.html
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<div>
|
||||
_parent_
|
||||
<div>
|
||||
_child_
|
||||
</div>
|
||||
<pre>
|
||||
_adopted child_
|
||||
</pre>
|
||||
</div>
|
||||
<p><em>outside</em></p>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/nested_block-level_html.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/nested_block-level_html.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<div>
|
||||
_parent_
|
||||
<div>
|
||||
_child_
|
||||
</div>
|
||||
<pre>
|
||||
_adopted child_
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
_outside_
|
||||
13
pfosten/vendor/erusev/parsedown/test/data/ordered_list.html
vendored
Normal file
13
pfosten/vendor/erusev/parsedown/test/data/ordered_list.html
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<ol>
|
||||
<li>one</li>
|
||||
<li>two</li>
|
||||
</ol>
|
||||
<p>repeating numbers:</p>
|
||||
<ol>
|
||||
<li>one</li>
|
||||
<li>two</li>
|
||||
</ol>
|
||||
<p>large numbers:</p>
|
||||
<ol start="123">
|
||||
<li>one</li>
|
||||
</ol>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/ordered_list.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/ordered_list.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
1. one
|
||||
2. two
|
||||
|
||||
repeating numbers:
|
||||
|
||||
1. one
|
||||
1. two
|
||||
|
||||
large numbers:
|
||||
|
||||
123. one
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/paragraph_list.html
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/paragraph_list.html
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<p>paragraph</p>
|
||||
<ul>
|
||||
<li>li</li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
<p>paragraph</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
</li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/paragraph_list.md
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/paragraph_list.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
paragraph
|
||||
- li
|
||||
- li
|
||||
|
||||
paragraph
|
||||
|
||||
* li
|
||||
|
||||
* li
|
||||
2
pfosten/vendor/erusev/parsedown/test/data/reference_title.html
vendored
Normal file
2
pfosten/vendor/erusev/parsedown/test/data/reference_title.html
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<p><a href="http://example.com" title="example title">double quotes</a> and <a href="http://example.com" title="example title">single quotes</a> and <a href="http://example.com" title="example title">parentheses</a></p>
|
||||
<p>[invalid title]: <a href="http://example.com">http://example.com</a> example title</p>
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/reference_title.md
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/reference_title.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[double quotes] and [single quotes] and [parentheses]
|
||||
|
||||
[double quotes]: http://example.com "example title"
|
||||
[single quotes]: http://example.com 'example title'
|
||||
[parentheses]: http://example.com (example title)
|
||||
[invalid title]: http://example.com example title
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/self-closing_html.html
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/self-closing_html.html
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<hr>
|
||||
<p>paragraph</p>
|
||||
<hr/>
|
||||
<p>paragraph</p>
|
||||
<hr />
|
||||
<p>paragraph</p>
|
||||
<hr class="foo" id="bar" />
|
||||
<p>paragraph</p>
|
||||
<hr class="foo" id="bar"/>
|
||||
<p>paragraph</p>
|
||||
<hr class="foo" id="bar" >
|
||||
<p>paragraph</p>
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/self-closing_html.md
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/self-closing_html.md
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<hr>
|
||||
paragraph
|
||||
<hr/>
|
||||
paragraph
|
||||
<hr />
|
||||
paragraph
|
||||
<hr class="foo" id="bar" />
|
||||
paragraph
|
||||
<hr class="foo" id="bar"/>
|
||||
paragraph
|
||||
<hr class="foo" id="bar" >
|
||||
paragraph
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/separated_nested_list.html
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/separated_nested_list.html
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
<ul>
|
||||
<li>li</li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/separated_nested_list.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/separated_nested_list.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- li
|
||||
|
||||
- li
|
||||
- li
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/setext_header.html
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/setext_header.html
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<h1>h1</h1>
|
||||
<h2>h2</h2>
|
||||
<h2>single character</h2>
|
||||
<p>not a header</p>
|
||||
<hr />
|
||||
12
pfosten/vendor/erusev/parsedown/test/data/setext_header.md
vendored
Normal file
12
pfosten/vendor/erusev/parsedown/test/data/setext_header.md
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
h1
|
||||
==
|
||||
|
||||
h2
|
||||
--
|
||||
|
||||
single character
|
||||
-
|
||||
|
||||
not a header
|
||||
|
||||
------------
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/simple_blockquote.html
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/simple_blockquote.html
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<blockquote>
|
||||
<p>quote</p>
|
||||
</blockquote>
|
||||
<p>indented:</p>
|
||||
<blockquote>
|
||||
<p>quote</p>
|
||||
</blockquote>
|
||||
<p>no space after <code>></code>:</p>
|
||||
<blockquote>
|
||||
<p>quote</p>
|
||||
</blockquote>
|
||||
7
pfosten/vendor/erusev/parsedown/test/data/simple_blockquote.md
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/data/simple_blockquote.md
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
> quote
|
||||
|
||||
indented:
|
||||
> quote
|
||||
|
||||
no space after `>`:
|
||||
>quote
|
||||
37
pfosten/vendor/erusev/parsedown/test/data/simple_table.html
vendored
Normal file
37
pfosten/vendor/erusev/parsedown/test/data/simple_table.html
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>header 1</th>
|
||||
<th>header 2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>cell 1.1</td>
|
||||
<td>cell 1.2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell 2.1</td>
|
||||
<td>cell 2.2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: left;">header 1</th>
|
||||
<th>header 2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: left;">cell 1.1</td>
|
||||
<td>cell 1.2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left;">cell 2.1</td>
|
||||
<td>cell 2.2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/simple_table.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/simple_table.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
header 1 | header 2
|
||||
-------- | --------
|
||||
cell 1.1 | cell 1.2
|
||||
cell 2.1 | cell 2.2
|
||||
|
||||
---
|
||||
|
||||
header 1 | header 2
|
||||
:------- | --------
|
||||
cell 1.1 | cell 1.2
|
||||
cell 2.1 | cell 2.2
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/span-level_html.html
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/span-level_html.html
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<p>an <b>important</b> <a href=''>link</a></p>
|
||||
<p>broken<br/>
|
||||
line</p>
|
||||
<p><b>inline tag</b> at the beginning</p>
|
||||
<p><span><a href="http://example.com">http://example.com</a></span></p>
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/span-level_html.md
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/span-level_html.md
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
an <b>important</b> <a href=''>link</a>
|
||||
|
||||
broken<br/>
|
||||
line
|
||||
|
||||
<b>inline tag</b> at the beginning
|
||||
|
||||
<span>http://example.com</span>
|
||||
7
pfosten/vendor/erusev/parsedown/test/data/sparse_dense_list.html
vendored
Normal file
7
pfosten/vendor/erusev/parsedown/test/data/sparse_dense_list.html
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
</li>
|
||||
<li>li</li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
4
pfosten/vendor/erusev/parsedown/test/data/sparse_dense_list.md
vendored
Normal file
4
pfosten/vendor/erusev/parsedown/test/data/sparse_dense_list.md
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- li
|
||||
|
||||
- li
|
||||
- li
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/sparse_html.html
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/sparse_html.html
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
line 1
|
||||
|
||||
line 2
|
||||
line 3
|
||||
|
||||
line 4
|
||||
</div>
|
||||
8
pfosten/vendor/erusev/parsedown/test/data/sparse_html.md
vendored
Normal file
8
pfosten/vendor/erusev/parsedown/test/data/sparse_html.md
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
line 1
|
||||
|
||||
line 2
|
||||
line 3
|
||||
|
||||
line 4
|
||||
</div>
|
||||
15
pfosten/vendor/erusev/parsedown/test/data/sparse_list.html
vendored
Normal file
15
pfosten/vendor/erusev/parsedown/test/data/sparse_list.html
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
</li>
|
||||
<li>li</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<ul>
|
||||
<li>
|
||||
<p>li</p>
|
||||
<ul>
|
||||
<li>indented li</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
9
pfosten/vendor/erusev/parsedown/test/data/sparse_list.md
vendored
Normal file
9
pfosten/vendor/erusev/parsedown/test/data/sparse_list.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- li
|
||||
|
||||
- li
|
||||
|
||||
---
|
||||
|
||||
- li
|
||||
|
||||
- indented li
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/special_characters.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/special_characters.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p>AT&T has an ampersand in their name</p>
|
||||
<p>this & that</p>
|
||||
<p>4 < 5 and 6 > 5</p>
|
||||
<p><a href="http://example.com/autolink?a=1&b=2">http://example.com/autolink?a=1&b=2</a></p>
|
||||
<p><a href="/script?a=1&b=2">inline link</a></p>
|
||||
<p><a href="http://example.com/?a=1&b=2">reference link</a></p>
|
||||
13
pfosten/vendor/erusev/parsedown/test/data/special_characters.md
vendored
Normal file
13
pfosten/vendor/erusev/parsedown/test/data/special_characters.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
AT&T has an ampersand in their name
|
||||
|
||||
this & that
|
||||
|
||||
4 < 5 and 6 > 5
|
||||
|
||||
<http://example.com/autolink?a=1&b=2>
|
||||
|
||||
[inline link](/script?a=1&b=2)
|
||||
|
||||
[reference link][1]
|
||||
|
||||
[1]: http://example.com/?a=1&b=2
|
||||
3
pfosten/vendor/erusev/parsedown/test/data/strikethrough.html
vendored
Normal file
3
pfosten/vendor/erusev/parsedown/test/data/strikethrough.html
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<p><del>strikethrough</del></p>
|
||||
<p>here's <del>one</del> followed by <del>another one</del></p>
|
||||
<p>~~ this ~~ is not one neither is ~this~</p>
|
||||
5
pfosten/vendor/erusev/parsedown/test/data/strikethrough.md
vendored
Normal file
5
pfosten/vendor/erusev/parsedown/test/data/strikethrough.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
~~strikethrough~~
|
||||
|
||||
here's ~~one~~ followed by ~~another one~~
|
||||
|
||||
~~ this ~~ is not one neither is ~this~
|
||||
6
pfosten/vendor/erusev/parsedown/test/data/strong_em.html
vendored
Normal file
6
pfosten/vendor/erusev/parsedown/test/data/strong_em.html
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p><em>em <strong>strong em</strong></em></p>
|
||||
<p><em><strong>strong em</strong> em</em></p>
|
||||
<p><em>em <strong>strong em</strong> em</em></p>
|
||||
<p><em>em <strong>strong em</strong></em></p>
|
||||
<p><em><strong>strong em</strong> em</em></p>
|
||||
<p><em>em <strong>strong em</strong> em</em></p>
|
||||
11
pfosten/vendor/erusev/parsedown/test/data/strong_em.md
vendored
Normal file
11
pfosten/vendor/erusev/parsedown/test/data/strong_em.md
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
*em **strong em***
|
||||
|
||||
***strong em** em*
|
||||
|
||||
*em **strong em** em*
|
||||
|
||||
_em __strong em___
|
||||
|
||||
___strong em__ em_
|
||||
|
||||
_em __strong em__ em_
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue