diff --git a/vendor/parsedown-0.9.0/.gitignore b/vendor/parsedown-0.9.0/.gitignore new file mode 100644 index 00000000..a7235d42 --- /dev/null +++ b/vendor/parsedown-0.9.0/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +.idea +nbproject \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/.travis.yml b/vendor/parsedown-0.9.0/.travis.yml new file mode 100644 index 00000000..8e89bdcf --- /dev/null +++ b/vendor/parsedown-0.9.0/.travis.yml @@ -0,0 +1,8 @@ +language: php + +php: + - 5.5 + - 5.4 + - 5.3 + - 5.2 + - hhvm \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/LICENSE.txt b/vendor/parsedown-0.9.0/LICENSE.txt new file mode 100644 index 00000000..baca86f5 --- /dev/null +++ b/vendor/parsedown-0.9.0/LICENSE.txt @@ -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. \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/Parsedown.php b/vendor/parsedown-0.9.0/Parsedown.php new file mode 100755 index 00000000..1c93fb3a --- /dev/null +++ b/vendor/parsedown-0.9.0/Parsedown.php @@ -0,0 +1,1055 @@ +breaks_enabled = $breaks_enabled; + + return $this; + } + + # + # Fields + # + + private $reference_map = array(); + + # + # Public Methods + # + + function parse($text) + { + # removes \r characters + $text = str_replace("\r\n", "\n", $text); + $text = str_replace("\r", "\n", $text); + + # replaces tabs with spaces + $text = str_replace("\t", ' ', $text); + + # ~ + + $text = trim($text, "\n"); + + $lines = explode("\n", $text); + + $text = $this->parse_block_elements($lines); + + $text = rtrim($text, "\n"); + + return $text; + } + + # + # Private Methods + # + + private function parse_block_elements(array $lines, $context = '') + { + $elements = array(); + + $element = array( + 'type' => '', + ); + + foreach ($lines as $line) + { + # fenced elements + + switch ($element['type']) + { + case 'fenced block': + + if ( ! isset($element['closed'])) + { + if (preg_match('/^[ ]*'.$element['fence'][0].'{3,}[ ]*$/', $line)) + { + $element['closed'] = true; + } + else + { + $element['text'] !== '' and $element['text'] .= "\n"; + + $element['text'] .= $line; + } + + continue 2; + } + + break; + + case 'block-level markup': + + if ( ! isset($element['closed'])) + { + if (strpos($line, $element['start']) !== false) # opening tag + { + $element['depth']++; + } + + if (strpos($line, $element['end']) !== false) # closing tag + { + $element['depth'] > 0 + ? $element['depth']-- + : $element['closed'] = true; + } + + $element['text'] .= "\n".$line; + + continue 2; + } + + break; + } + + # * + + $deindented_line = ltrim($line); + + if ($deindented_line === '') + { + $element['interrupted'] = true; + + continue; + } + + # composite elements + + switch ($element['type']) + { + case 'blockquote': + + if ( ! isset($element['interrupted'])) + { + $line = preg_replace('/^[ ]*>[ ]?/', '', $line); + + $element['lines'] []= $line; + + continue 2; + } + + break; + + case 'li': + + if (preg_match('/^([ ]{0,3})(\d+[.]|[*+-])[ ](.*)/', $line, $matches)) + { + if ($element['indentation'] !== $matches[1]) + { + $element['lines'] []= $line; + } + else + { + unset($element['last']); + + $elements []= $element; + + unset($element['first']); + + $element['last'] = true; + $element['lines'] = array( + preg_replace('/^[ ]{0,4}/', '', $matches[3]), + ); + } + + continue 2; + } + + if (isset($element['interrupted'])) + { + if ($line[0] === ' ') + { + $element['lines'] []= ''; + + $line = preg_replace('/^[ ]{0,4}/', '', $line); + + $element['lines'] []= $line; + + unset($element['interrupted']); + + continue 2; + } + } + else + { + $line = preg_replace('/^[ ]{0,4}/', '', $line); + + $element['lines'] []= $line; + + continue 2; + } + + break; + } + + # indentation sensitive types + + switch ($line[0]) + { + case ' ': + + # code block + + if (isset($line[3]) and $line[3] === ' ' and $line[2] === ' ' and $line[1] === ' ') + { + $code_line = substr($line, 4); + + if ($element['type'] === 'code block') + { + if (isset($element['interrupted'])) + { + $element['text'] .= "\n"; + + unset ($element['interrupted']); + } + + $element['text'] .= "\n".$code_line; + } + else + { + $elements []= $element; + + $element = array( + 'type' => 'code block', + 'text' => $code_line, + ); + } + + continue 2; + } + + break; + + case '#': + + # atx heading (#) + + if (isset($line[1])) + { + $elements []= $element; + + $level = 1; + + while (isset($line[$level]) and $line[$level] === '#') + { + $level++; + } + + $element = array( + 'type' => 'heading', + 'text' => trim($line, '# '), + 'level' => $level, + ); + + continue 2; + } + + break; + + case '-': + case '=': + + # setext heading + + if ($element['type'] === 'paragraph' and isset($element['interrupted']) === false) + { + $chopped_line = rtrim($line); + + $i = 1; + + while (isset($chopped_line[$i])) + { + if ($chopped_line[$i] !== $line[0]) + { + break 2; + } + + $i++; + } + + $element['type'] = 'heading'; + $element['level'] = $line[0] === '-' ? 2 : 1; + + continue 2; + } + + break; + } + + # indentation insensitive types + + switch ($deindented_line[0]) + { + case '<': + + $position = strpos($deindented_line, '>'); + + if ($position > 1) # tag + { + $name = substr($deindented_line, 1, $position - 1); + $name = rtrim($name); + + if (substr($name, -1) === '/') + { + $self_closing = true; + + $name = substr($name, 0, -1); + } + + $position = strpos($name, ' '); + + if ($position) + { + $name = substr($name, 0, $position); + } + + if ( ! ctype_alpha($name)) + { + break; + } + + if (in_array($name, $this->inline_tags)) + { + break; + } + + $elements []= $element; + + if (isset($self_closing)) + { + $element = array( + 'type' => 'self-closing tag', + 'text' => $deindented_line, + ); + + unset($self_closing); + + continue 2; + } + + $element = array( + 'type' => 'block-level markup', + 'text' => $deindented_line, + 'start' => '<'.$name.'>', + 'end' => ''.$name.'>', + 'depth' => 0, + ); + + if (strpos($deindented_line, $element['end'])) + { + $element['closed'] = true; + } + + continue 2; + } + + break; + + case '>': + + # quote + + if (preg_match('/^>[ ]?(.*)/', $deindented_line, $matches)) + { + $elements []= $element; + + $element = array( + 'type' => 'blockquote', + 'lines' => array( + $matches[1], + ), + ); + + continue 2; + } + + break; + + case '[': + + # reference + + if (preg_match('/^\[(.+?)\]:[ ]*(.+?)(?:[ ]+[\'"](.+?)[\'"])?[ ]*$/', $deindented_line, $matches)) + { + $label = strtolower($matches[1]); + + $this->reference_map[$label] = array( + '»' => trim($matches[2], '<>'), + ); + + if (isset($matches[3])) + { + $this->reference_map[$label]['#'] = $matches[3]; + } + + continue 2; + } + + break; + + case '`': + case '~': + + # fenced code block + + if (preg_match('/^([`]{3,}|[~]{3,})[ ]*(\S+)?[ ]*$/', $deindented_line, $matches)) + { + $elements []= $element; + + $element = array( + 'type' => 'fenced block', + 'text' => '', + 'fence' => $matches[1], + ); + + isset($matches[2]) and $element['language'] = $matches[2]; + + continue 2; + } + + break; + + case '*': + case '+': + case '-': + case '_': + + # hr + + if (preg_match('/^([-*_])([ ]{0,2}\1){2,}[ ]*$/', $deindented_line)) + { + $elements []= $element; + + $element = array( + 'type' => 'hr', + ); + + continue 2; + } + + # li + + if (preg_match('/^([ ]*)[*+-][ ](.*)/', $line, $matches)) + { + $elements []= $element; + + $element = array( + 'type' => 'li', + 'ordered' => false, + 'indentation' => $matches[1], + 'first' => true, + 'last' => true, + 'lines' => array( + preg_replace('/^[ ]{0,4}/', '', $matches[2]), + ), + ); + + continue 2; + } + } + + # li + + if ($deindented_line[0] <= '9' and $deindented_line[0] >= '0' and preg_match('/^([ ]*)\d+[.][ ](.*)/', $line, $matches)) + { + $elements []= $element; + + $element = array( + 'type' => 'li', + 'ordered' => true, + 'indentation' => $matches[1], + 'first' => true, + 'last' => true, + 'lines' => array( + preg_replace('/^[ ]{0,4}/', '', $matches[2]), + ), + ); + + continue; + } + + # paragraph + + if ($element['type'] === 'paragraph') + { + if (isset($element['interrupted'])) + { + $elements []= $element; + + $element['text'] = $line; + + unset($element['interrupted']); + } + else + { + $this->breaks_enabled and $element['text'] .= ' '; + + $element['text'] .= "\n".$line; + } + } + else + { + $elements []= $element; + + $element = array( + 'type' => 'paragraph', + 'text' => $line, + ); + } + } + + $elements []= $element; + + unset($elements[0]); + + # + # ~ + # + + $markup = ''; + + foreach ($elements as $element) + { + switch ($element['type']) + { + case 'paragraph': + + $text = $this->parse_span_elements($element['text']); + + if ($context === 'li' and $markup === '') + { + if (isset($element['interrupted'])) + { + $markup .= "\n".'
'.$text.'
'."\n"; + } + else + { + $markup .= $text; + + if (isset($elements[2])) + { + $markup .= "\n"; + } + } + } + else + { + $markup .= ''.$text.'
'."\n"; + } + + break; + + case 'blockquote': + + $text = $this->parse_block_elements($element['lines']); + + $markup .= ''."\n".$text.''."\n"; + + break; + + case 'code block': + + $text = htmlspecialchars($element['text'], ENT_NOQUOTES, 'UTF-8'); + + $markup .= '
'.$text.'
'."\n";
+
+ break;
+
+ case 'fenced block':
+
+ $text = htmlspecialchars($element['text'], ENT_NOQUOTES, 'UTF-8');
+
+ $markup .= '
'."\n";
+
+ break;
+
+ case 'heading':
+
+ $text = $this->parse_span_elements($element['text']);
+
+ $markup .= ''.$element_text.'
';
+
+ $offset = strlen($matches[0]);
+ }
+ else
+ {
+ $markup .= '`';
+
+ $offset = 1;
+ }
+
+ break;
+
+ case 'http':
+
+ if (preg_match('/^https?:[\/]{2}[^\s]+\b/i', $text, $matches))
+ {
+ $element_url = $matches[0];
+ $element_url = str_replace('&', '&', $element_url);
+ $element_url = str_replace('<', '<', $element_url);
+
+ $markup .= ''.$element_url.'';
+
+ $offset = strlen($matches[0]);
+ }
+ else
+ {
+ $markup .= 'http';
+
+ $offset = 4;
+ }
+
+ break;
+
+ case '~~':
+
+ if (preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $text, $matches))
+ {
+ $matches[1] = $this->parse_span_elements($matches[1], $markers);
+
+ $markup .= 'Hello Parsedown!
+``` diff --git a/vendor/parsedown-0.9.0/composer.json b/vendor/parsedown-0.9.0/composer.json new file mode 100644 index 00000000..1439b824 --- /dev/null +++ b/vendor/parsedown-0.9.0/composer.json @@ -0,0 +1,18 @@ +{ + "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" + } + ], + "autoload": { + "psr-0": {"Parsedown": ""} + } +} \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/phpunit.xml.dist b/vendor/parsedown-0.9.0/phpunit.xml.dist new file mode 100644 index 00000000..4c55dc26 --- /dev/null +++ b/vendor/parsedown-0.9.0/phpunit.xml.dist @@ -0,0 +1,8 @@ + +#
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/atx_heading.md b/vendor/parsedown-0.9.0/tests/data/atx_heading.md new file mode 100644 index 00000000..2d5c6ca0 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/atx_heading.md @@ -0,0 +1,15 @@ +# h1 + +## h2 + +### h3 + +#### h4 + +##### h5 + +###### h6 + +# closed h1 # + +# \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/automatic_link.html b/vendor/parsedown-0.9.0/tests/data/automatic_link.html new file mode 100644 index 00000000..50a94ba0 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/automatic_link.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/automatic_link.md b/vendor/parsedown-0.9.0/tests/data/automatic_link.md new file mode 100644 index 00000000..08d3bf46 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/automatic_link.md @@ -0,0 +1 @@ +sparse:
+<?php
+
+$message = 'Hello World!';
+echo $message;
+> not a quote
+- not a list item
+[not a reference]: http://foo.com
\ No newline at end of file
diff --git a/vendor/parsedown-0.9.0/tests/data/code_block.md b/vendor/parsedown-0.9.0/tests/data/code_block.md
new file mode 100644
index 00000000..59104cb6
--- /dev/null
+++ b/vendor/parsedown-0.9.0/tests/data/code_block.md
@@ -0,0 +1,11 @@
+ not a quote
+ - not a list item
+ [not a reference]: http://foo.com
+
\ No newline at end of file
diff --git a/vendor/parsedown-0.9.0/tests/data/code_span.html b/vendor/parsedown-0.9.0/tests/data/code_span.html
new file mode 100644
index 00000000..40674bec
--- /dev/null
+++ b/vendor/parsedown-0.9.0/tests/data/code_span.html
@@ -0,0 +1 @@
+a code span
+\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/compound_blockquote.md b/vendor/parsedown-0.9.0/tests/data/compound_blockquote.md new file mode 100644 index 00000000..80c4aed1 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/compound_blockquote.md @@ -0,0 +1,10 @@ +> header +> ------ +> +> paragraph +> +> - li +> +> --- +> +> paragraph \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/compound_emphasis.html b/vendor/parsedown-0.9.0/tests/data/compound_emphasis.html new file mode 100644 index 00000000..178dd54b --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/compound_emphasis.html @@ -0,0 +1,2 @@ +header
+paragraph
++
+- li
+
+paragraph
+
code
code
code
code
code
paragraph
+paragraph
+paragraph
+++quote
+
em strong
+em strong strong
+strong em strong
+strong em strong strong
+em strong
+em strong strong
+strong em strong
+strong em strong strong
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/em_strong.md b/vendor/parsedown-0.9.0/tests/data/em_strong.md new file mode 100644 index 00000000..9abeb3fd --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/em_strong.md @@ -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** \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/email.html b/vendor/parsedown-0.9.0/tests/data/email.html new file mode 100644 index 00000000..c40759c9 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/email.html @@ -0,0 +1 @@ +my email is me@example.com
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/email.md b/vendor/parsedown-0.9.0/tests/data/email.md new file mode 100644 index 00000000..26b7b6cc --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/email.md @@ -0,0 +1 @@ +my email isunderscore, 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
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/emphasis.md b/vendor/parsedown-0.9.0/tests/data/emphasis.md new file mode 100644 index 00000000..a8f0c989 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/emphasis.md @@ -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 \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/escaping.html b/vendor/parsedown-0.9.0/tests/data/escaping.html new file mode 100644 index 00000000..64676cb1 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/escaping.html @@ -0,0 +1,4 @@ +escaped *emphasis*.
+escaped \*emphasis\* in a code span
escaped \*emphasis\* in a code block
+\ ` * _ { } [ ] ( ) > # + - . !
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/escaping.md b/vendor/parsedown-0.9.0/tests/data/escaping.md new file mode 100644 index 00000000..164039f8 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/escaping.md @@ -0,0 +1,7 @@ +escaped \*emphasis\*. + +`escaped \*emphasis\* in a code span` + + escaped \*emphasis\* in a code block + +\\ \` \* \_ \{ \} \[ \] \( \) \> \# \+ \- \. \! \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/fenced_code_block.html b/vendor/parsedown-0.9.0/tests/data/fenced_code_block.html new file mode 100644 index 00000000..8bdabba9 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/fenced_code_block.html @@ -0,0 +1,6 @@ +<?php
+
+$message = 'fenced code block';
+echo $message;
+tilde
+echo 'language identifier';
\ No newline at end of file
diff --git a/vendor/parsedown-0.9.0/tests/data/fenced_code_block.md b/vendor/parsedown-0.9.0/tests/data/fenced_code_block.md
new file mode 100644
index 00000000..cbed8ebb
--- /dev/null
+++ b/vendor/parsedown-0.9.0/tests/data/fenced_code_block.md
@@ -0,0 +1,14 @@
+```
+
+& © {
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/html_entity.md b/vendor/parsedown-0.9.0/tests/data/html_entity.md new file mode 100644 index 00000000..ff545ea5 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/html_entity.md @@ -0,0 +1 @@ +& © { \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/image_reference.html b/vendor/parsedown-0.9.0/tests/data/image_reference.html new file mode 100644 index 00000000..b3249cba --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/image_reference.html @@ -0,0 +1 @@ +an implicit reference link
+an implicit reference link with an empty link definition
+an explicit reference link with a title
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/implicit_reference.md b/vendor/parsedown-0.9.0/tests/data/implicit_reference.md new file mode 100644 index 00000000..d1288263 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/implicit_reference.md @@ -0,0 +1,9 @@ +an [implicit] reference link + +[implicit]: http://example.com + +an [implicit][] reference link with an empty link definition + +an [explicit][example] reference link with a title + +[example]: http://example.com "Example" \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/inline_link.html b/vendor/parsedown-0.9.0/tests/data/inline_link.html new file mode 100644 index 00000000..2b9e649d --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/inline_link.html @@ -0,0 +1,4 @@ +link and another link
+ + + \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/inline_link.md b/vendor/parsedown-0.9.0/tests/data/inline_link.md new file mode 100644 index 00000000..cd8e5a63 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/inline_link.md @@ -0,0 +1,7 @@ +[link](http://example.com) and [another link](/tests/) + +[`link`](http://example.com) + +[![MD Logo](http://parsedown.org/md.png)](http://example.com) + +[![MD Logo](http://parsedown.org/md.png) and text](http://example.com) \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/inline_title.html b/vendor/parsedown-0.9.0/tests/data/inline_title.html new file mode 100644 index 00000000..bbab93b6 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/inline_title.html @@ -0,0 +1 @@ +single quotes and double quotes
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/inline_title.md b/vendor/parsedown-0.9.0/tests/data/inline_title.md new file mode 100644 index 00000000..cb09344a --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/inline_title.md @@ -0,0 +1 @@ +[single quotes](http://example.com 'Example') and [double quotes](http://example.com "Example") \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.html b/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.html new file mode 100644 index 00000000..c368a0b8 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.html @@ -0,0 +1,4 @@ ++\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.md b/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.md new file mode 100644 index 00000000..8490c22e --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/lazy_blockquote.md @@ -0,0 +1,2 @@ +> quote +the rest of it \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/lazy_list.html b/vendor/parsedown-0.9.0/tests/data/lazy_list.html new file mode 100644 index 00000000..1a519924 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/lazy_list.html @@ -0,0 +1,4 @@ +quote +the rest of it
+
line
+line
li
+line +line
++_adopted child_ ++
outside
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/nested_block-level_html.md b/vendor/parsedown-0.9.0/tests/data/nested_block-level_html.md new file mode 100644 index 00000000..5e01e109 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/nested_block-level_html.md @@ -0,0 +1,11 @@ ++_adopted child_ ++
repeating numbers:
+large numbers:
+paragraph
+paragraph
+li
+single quotes and double quotes
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/reference_title.md b/vendor/parsedown-0.9.0/tests/data/reference_title.md new file mode 100644 index 00000000..162b832a --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/reference_title.md @@ -0,0 +1 @@ +[single quotes](http://example.com 'Title') and [double quotes](http://example.com "Title") \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.html b/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.html new file mode 100644 index 00000000..c3cb1f42 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.html @@ -0,0 +1,4 @@ +attributes:
+...
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.md b/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.md new file mode 100644 index 00000000..95f00ec7 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/self-closing_block-level_html.md @@ -0,0 +1,7 @@ +not a header
+++quote
+
indented:
+++quote
+
no space after >
:
+\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/simple_blockquote.md b/vendor/parsedown-0.9.0/tests/data/simple_blockquote.md new file mode 100644 index 00000000..22b6b11a --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/simple_blockquote.md @@ -0,0 +1,7 @@ +> quote + +indented: + > quote + +no space after `>`: +>quote \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/span-level_html.html b/vendor/parsedown-0.9.0/tests/data/span-level_html.html new file mode 100644 index 00000000..590b6343 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/span-level_html.html @@ -0,0 +1,4 @@ +quote
+
an important link
+broken
+line
inline tag at the beginning
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/span-level_html.md b/vendor/parsedown-0.9.0/tests/data/span-level_html.md new file mode 100644 index 00000000..aadf6fc6 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/span-level_html.md @@ -0,0 +1,6 @@ +an important link + +brokenli
+li
+AT&T has an ampersand in their name
+this & that
+4 < 5 and 6 > 5
+http://example.com/autolink?a=1&b=2
+ + \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/special_characters.md b/vendor/parsedown-0.9.0/tests/data/special_characters.md new file mode 100644 index 00000000..13597e60 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/special_characters.md @@ -0,0 +1,13 @@ +AT&T has an ampersand in their name + +this & that + +4 < 5 and 6 > 5 + +strikethrough
here's one followed by another one
~~ this ~~ is not one neither is ~this~
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/strikethrough.md b/vendor/parsedown-0.9.0/tests/data/strikethrough.md new file mode 100644 index 00000000..d169144d --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/strikethrough.md @@ -0,0 +1,5 @@ +~~strikethrough~~ + +here's ~~one~~ followed by ~~another one~~ + +~~ this ~~ is not one neither is ~this~ \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/strong_em.html b/vendor/parsedown-0.9.0/tests/data/strong_em.html new file mode 100644 index 00000000..b709c991 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/strong_em.html @@ -0,0 +1,6 @@ +em strong em
+strong em em
+em strong em em
+em strong em
+strong em em
+em strong em em
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/strong_em.md b/vendor/parsedown-0.9.0/tests/data/strong_em.md new file mode 100644 index 00000000..f2aa3c78 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/strong_em.md @@ -0,0 +1,11 @@ +*em **strong em*** + +***strong em** em* + +*em **strong em** em* + +_em __strong em___ + +___strong em__ em_ + +_em __strong em__ em_ \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.html b/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.html new file mode 100644 index 00000000..0331c25d --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.html @@ -0,0 +1,6 @@ +<?php
+
+$message = 'Hello World!';
+echo $message;
+
+echo "following a blank line";
\ No newline at end of file
diff --git a/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.md b/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.md
new file mode 100644
index 00000000..a2087ae1
--- /dev/null
+++ b/vendor/parsedown-0.9.0/tests/data/tab-indented_code_block.md
@@ -0,0 +1,6 @@
+ reference link
+one with a semantic name
+[one][404] with no definition
+multiline +one defined on 2 lines
+one with an upper case label
+ \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/text_reference.md b/vendor/parsedown-0.9.0/tests/data/text_reference.md new file mode 100644 index 00000000..7768e302 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/text_reference.md @@ -0,0 +1,18 @@ +[reference link][1] + +[1]: http://example.com + +[one][website] with a semantic name + +[website]: http://example.com + +[one][404] with no definition + +[multiline +one][website] defined on 2 lines + +[one][label] with an upper case label + +[LABEL]: http://example.com + +[`link`][website] \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/unordered_list.html b/vendor/parsedown-0.9.0/tests/data/unordered_list.html new file mode 100644 index 00000000..cd95567b --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/unordered_list.html @@ -0,0 +1,10 @@ +mixed markers:
+an autolink http://example.com
+inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com)
\ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/url_autolinking.md b/vendor/parsedown-0.9.0/tests/data/url_autolinking.md new file mode 100644 index 00000000..8cc442a5 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/url_autolinking.md @@ -0,0 +1,3 @@ +an autolink http://example.com + +inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com) \ No newline at end of file diff --git a/vendor/parsedown-0.9.0/tests/data/whitespace.html b/vendor/parsedown-0.9.0/tests/data/whitespace.html new file mode 100644 index 00000000..f2dd7a00 --- /dev/null +++ b/vendor/parsedown-0.9.0/tests/data/whitespace.html @@ -0,0 +1 @@ +code
\ No newline at end of file
diff --git a/vendor/parsedown-0.9.0/tests/data/whitespace.md b/vendor/parsedown-0.9.0/tests/data/whitespace.md
new file mode 100644
index 00000000..4cf926a8
--- /dev/null
+++ b/vendor/parsedown-0.9.0/tests/data/whitespace.md
@@ -0,0 +1,5 @@
+
+
+ code
+
+
\ No newline at end of file