From 73e265d8fd050ae3daa67472b4465a5c49d68910 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 20 Apr 2019 15:18:33 +0300 Subject: Include to Wekan packages directory contents, so that meteor command would build all directly. This also simplifies build scripts. Thanks to xet7 ! --- .../markdown/marked/test/new/adjacent_lists.html | 9 + .../markdown/marked/test/new/adjacent_lists.md | 5 + .../markdown/marked/test/new/autolink_lines.html | 3 + .../markdown/marked/test/new/autolink_lines.md | 2 + packages/markdown/marked/test/new/autolinks.html | 15 + packages/markdown/marked/test/new/autolinks.md | 15 + .../marked/test/new/blockquote_list_item.html | 3 + .../marked/test/new/blockquote_list_item.md | 4 + .../marked/test/new/case_insensitive_refs.html | 1 + .../marked/test/new/case_insensitive_refs.md | 3 + .../markdown/marked/test/new/cm_autolinks.html | 91 ++++ packages/markdown/marked/test/new/cm_autolinks.md | 96 ++++ .../markdown/marked/test/new/cm_blockquotes.html | 233 ++++++++++ .../markdown/marked/test/new/cm_blockquotes.md | 189 ++++++++ .../markdown/marked/test/new/cm_html_blocks.html | 300 ++++++++++++ .../markdown/marked/test/new/cm_html_blocks.md | 312 +++++++++++++ .../markdown/marked/test/new/cm_link_defs.html | 115 +++++ packages/markdown/marked/test/new/cm_link_defs.md | 157 +++++++ packages/markdown/marked/test/new/cm_links.html | 397 ++++++++++++++++ packages/markdown/marked/test/new/cm_links.md | 515 +++++++++++++++++++++ packages/markdown/marked/test/new/cm_raw_html.html | 77 +++ packages/markdown/marked/test/new/cm_raw_html.md | 78 ++++ .../markdown/marked/test/new/cm_strong_and_em.html | 7 + .../markdown/marked/test/new/cm_strong_and_em.md | 7 + .../marked/test/new/cm_thematic_breaks.html | 106 +++++ .../markdown/marked/test/new/cm_thematic_breaks.md | 98 ++++ packages/markdown/marked/test/new/code_spans.html | 3 + packages/markdown/marked/test/new/code_spans.md | 3 + packages/markdown/marked/test/new/def_blocks.html | 30 ++ packages/markdown/marked/test/new/def_blocks.md | 21 + packages/markdown/marked/test/new/double_link.html | 5 + packages/markdown/marked/test/new/double_link.md | 5 + packages/markdown/marked/test/new/em_2char.html | 25 + packages/markdown/marked/test/new/em_2char.md | 25 + .../marked/test/new/emphasis_extra tests.html | 1 + .../marked/test/new/emphasis_extra tests.md | 1 + .../markdown/marked/test/new/escaped_angles.html | 1 + .../markdown/marked/test/new/escaped_angles.md | 1 + .../markdown/marked/test/new/gfm_autolinks.html | 83 ++++ packages/markdown/marked/test/new/gfm_autolinks.md | 83 ++++ packages/markdown/marked/test/new/gfm_break.html | 1 + packages/markdown/marked/test/new/gfm_break.md | 6 + packages/markdown/marked/test/new/gfm_code.html | 21 + packages/markdown/marked/test/new/gfm_code.md | 43 ++ .../markdown/marked/test/new/gfm_code_hr_list.html | 52 +++ .../markdown/marked/test/new/gfm_code_hr_list.md | 53 +++ packages/markdown/marked/test/new/gfm_em.html | 1 + packages/markdown/marked/test/new/gfm_em.md | 1 + packages/markdown/marked/test/new/gfm_hashtag.html | 5 + packages/markdown/marked/test/new/gfm_hashtag.md | 8 + .../marked/test/new/gfm_links_invalid.html | 1 + .../markdown/marked/test/new/gfm_links_invalid.md | 4 + packages/markdown/marked/test/new/gfm_tables.html | 37 ++ packages/markdown/marked/test/new/gfm_tables.md | 21 + packages/markdown/marked/test/new/headings_id.html | 13 + packages/markdown/marked/test/new/headings_id.md | 14 + .../markdown/marked/test/new/hr_list_break.html | 10 + packages/markdown/marked/test/new/hr_list_break.md | 6 + .../markdown/marked/test/new/html_comments.html | 57 +++ packages/markdown/marked/test/new/html_comments.md | 56 +++ .../markdown/marked/test/new/html_no_new_line.html | 1 + .../markdown/marked/test/new/html_no_new_line.md | 1 + packages/markdown/marked/test/new/images.html | 5 + packages/markdown/marked/test/new/images.md | 12 + .../markdown/marked/test/new/lazy_blockquotes.html | 4 + .../markdown/marked/test/new/lazy_blockquotes.md | 2 + packages/markdown/marked/test/new/link_lt.html | 1 + packages/markdown/marked/test/new/link_lt.md | 1 + .../markdown/marked/test/new/link_tick_redos.html | 31 ++ .../markdown/marked/test/new/link_tick_redos.md | 31 ++ packages/markdown/marked/test/new/links.html | 3 + packages/markdown/marked/test/new/links.md | 5 + .../markdown/marked/test/new/list_item_text.html | 1 + .../markdown/marked/test/new/list_item_text.md | 5 + packages/markdown/marked/test/new/list_table.html | 44 ++ packages/markdown/marked/test/new/list_table.md | 13 + packages/markdown/marked/test/new/main.html | 4 + packages/markdown/marked/test/new/main.md | 55 +++ packages/markdown/marked/test/new/mangle_xss.html | 3 + packages/markdown/marked/test/new/mangle_xss.md | 7 + packages/markdown/marked/test/new/nested_code.html | 9 + packages/markdown/marked/test/new/nested_code.md | 9 + packages/markdown/marked/test/new/nested_em.html | 3 + packages/markdown/marked/test/new/nested_em.md | 3 + .../marked/test/new/nested_square_link.html | 3 + .../markdown/marked/test/new/nested_square_link.md | 3 + .../markdown/marked/test/new/nogfm_hashtag.html | 5 + packages/markdown/marked/test/new/nogfm_hashtag.md | 8 + packages/markdown/marked/test/new/not_a_link.html | 1 + packages/markdown/marked/test/new/not_a_link.md | 1 + packages/markdown/marked/test/new/ref_paren.html | 1 + packages/markdown/marked/test/new/ref_paren.md | 3 + .../markdown/marked/test/new/relative_urls.html | 35 ++ packages/markdown/marked/test/new/relative_urls.md | 30 ++ packages/markdown/marked/test/new/same_bullet.html | 5 + packages/markdown/marked/test/new/same_bullet.md | 3 + .../markdown/marked/test/new/sanitize_links.html | 5 + .../markdown/marked/test/new/sanitize_links.md | 12 + packages/markdown/marked/test/new/smartypants.html | 6 + packages/markdown/marked/test/new/smartypants.md | 9 + .../markdown/marked/test/new/smartypants_code.html | 11 + .../markdown/marked/test/new/smartypants_code.md | 15 + packages/markdown/marked/test/new/table_cells.html | 27 ++ packages/markdown/marked/test/new/table_cells.md | 55 +++ .../marked/test/new/toplevel_paragraphs.html | 34 ++ .../marked/test/new/toplevel_paragraphs.md | 41 ++ packages/markdown/marked/test/new/tricky_list.html | 23 + packages/markdown/marked/test/new/tricky_list.md | 15 + .../markdown/marked/test/new/uppercase_hex.html | 2 + packages/markdown/marked/test/new/uppercase_hex.md | 5 + 110 files changed, 4146 insertions(+) create mode 100644 packages/markdown/marked/test/new/adjacent_lists.html create mode 100644 packages/markdown/marked/test/new/adjacent_lists.md create mode 100644 packages/markdown/marked/test/new/autolink_lines.html create mode 100644 packages/markdown/marked/test/new/autolink_lines.md create mode 100644 packages/markdown/marked/test/new/autolinks.html create mode 100644 packages/markdown/marked/test/new/autolinks.md create mode 100644 packages/markdown/marked/test/new/blockquote_list_item.html create mode 100644 packages/markdown/marked/test/new/blockquote_list_item.md create mode 100644 packages/markdown/marked/test/new/case_insensitive_refs.html create mode 100644 packages/markdown/marked/test/new/case_insensitive_refs.md create mode 100644 packages/markdown/marked/test/new/cm_autolinks.html create mode 100644 packages/markdown/marked/test/new/cm_autolinks.md create mode 100644 packages/markdown/marked/test/new/cm_blockquotes.html create mode 100644 packages/markdown/marked/test/new/cm_blockquotes.md create mode 100644 packages/markdown/marked/test/new/cm_html_blocks.html create mode 100644 packages/markdown/marked/test/new/cm_html_blocks.md create mode 100644 packages/markdown/marked/test/new/cm_link_defs.html create mode 100644 packages/markdown/marked/test/new/cm_link_defs.md create mode 100644 packages/markdown/marked/test/new/cm_links.html create mode 100644 packages/markdown/marked/test/new/cm_links.md create mode 100644 packages/markdown/marked/test/new/cm_raw_html.html create mode 100644 packages/markdown/marked/test/new/cm_raw_html.md create mode 100644 packages/markdown/marked/test/new/cm_strong_and_em.html create mode 100644 packages/markdown/marked/test/new/cm_strong_and_em.md create mode 100644 packages/markdown/marked/test/new/cm_thematic_breaks.html create mode 100644 packages/markdown/marked/test/new/cm_thematic_breaks.md create mode 100644 packages/markdown/marked/test/new/code_spans.html create mode 100644 packages/markdown/marked/test/new/code_spans.md create mode 100644 packages/markdown/marked/test/new/def_blocks.html create mode 100644 packages/markdown/marked/test/new/def_blocks.md create mode 100644 packages/markdown/marked/test/new/double_link.html create mode 100644 packages/markdown/marked/test/new/double_link.md create mode 100644 packages/markdown/marked/test/new/em_2char.html create mode 100644 packages/markdown/marked/test/new/em_2char.md create mode 100644 packages/markdown/marked/test/new/emphasis_extra tests.html create mode 100644 packages/markdown/marked/test/new/emphasis_extra tests.md create mode 100644 packages/markdown/marked/test/new/escaped_angles.html create mode 100644 packages/markdown/marked/test/new/escaped_angles.md create mode 100644 packages/markdown/marked/test/new/gfm_autolinks.html create mode 100644 packages/markdown/marked/test/new/gfm_autolinks.md create mode 100644 packages/markdown/marked/test/new/gfm_break.html create mode 100644 packages/markdown/marked/test/new/gfm_break.md create mode 100644 packages/markdown/marked/test/new/gfm_code.html create mode 100644 packages/markdown/marked/test/new/gfm_code.md create mode 100644 packages/markdown/marked/test/new/gfm_code_hr_list.html create mode 100644 packages/markdown/marked/test/new/gfm_code_hr_list.md create mode 100644 packages/markdown/marked/test/new/gfm_em.html create mode 100644 packages/markdown/marked/test/new/gfm_em.md create mode 100644 packages/markdown/marked/test/new/gfm_hashtag.html create mode 100644 packages/markdown/marked/test/new/gfm_hashtag.md create mode 100644 packages/markdown/marked/test/new/gfm_links_invalid.html create mode 100644 packages/markdown/marked/test/new/gfm_links_invalid.md create mode 100644 packages/markdown/marked/test/new/gfm_tables.html create mode 100644 packages/markdown/marked/test/new/gfm_tables.md create mode 100644 packages/markdown/marked/test/new/headings_id.html create mode 100644 packages/markdown/marked/test/new/headings_id.md create mode 100644 packages/markdown/marked/test/new/hr_list_break.html create mode 100644 packages/markdown/marked/test/new/hr_list_break.md create mode 100644 packages/markdown/marked/test/new/html_comments.html create mode 100644 packages/markdown/marked/test/new/html_comments.md create mode 100644 packages/markdown/marked/test/new/html_no_new_line.html create mode 100644 packages/markdown/marked/test/new/html_no_new_line.md create mode 100644 packages/markdown/marked/test/new/images.html create mode 100644 packages/markdown/marked/test/new/images.md create mode 100644 packages/markdown/marked/test/new/lazy_blockquotes.html create mode 100644 packages/markdown/marked/test/new/lazy_blockquotes.md create mode 100644 packages/markdown/marked/test/new/link_lt.html create mode 100644 packages/markdown/marked/test/new/link_lt.md create mode 100644 packages/markdown/marked/test/new/link_tick_redos.html create mode 100644 packages/markdown/marked/test/new/link_tick_redos.md create mode 100644 packages/markdown/marked/test/new/links.html create mode 100644 packages/markdown/marked/test/new/links.md create mode 100644 packages/markdown/marked/test/new/list_item_text.html create mode 100644 packages/markdown/marked/test/new/list_item_text.md create mode 100644 packages/markdown/marked/test/new/list_table.html create mode 100644 packages/markdown/marked/test/new/list_table.md create mode 100644 packages/markdown/marked/test/new/main.html create mode 100644 packages/markdown/marked/test/new/main.md create mode 100644 packages/markdown/marked/test/new/mangle_xss.html create mode 100644 packages/markdown/marked/test/new/mangle_xss.md create mode 100644 packages/markdown/marked/test/new/nested_code.html create mode 100644 packages/markdown/marked/test/new/nested_code.md create mode 100644 packages/markdown/marked/test/new/nested_em.html create mode 100644 packages/markdown/marked/test/new/nested_em.md create mode 100644 packages/markdown/marked/test/new/nested_square_link.html create mode 100644 packages/markdown/marked/test/new/nested_square_link.md create mode 100644 packages/markdown/marked/test/new/nogfm_hashtag.html create mode 100644 packages/markdown/marked/test/new/nogfm_hashtag.md create mode 100644 packages/markdown/marked/test/new/not_a_link.html create mode 100644 packages/markdown/marked/test/new/not_a_link.md create mode 100644 packages/markdown/marked/test/new/ref_paren.html create mode 100644 packages/markdown/marked/test/new/ref_paren.md create mode 100644 packages/markdown/marked/test/new/relative_urls.html create mode 100644 packages/markdown/marked/test/new/relative_urls.md create mode 100644 packages/markdown/marked/test/new/same_bullet.html create mode 100644 packages/markdown/marked/test/new/same_bullet.md create mode 100644 packages/markdown/marked/test/new/sanitize_links.html create mode 100644 packages/markdown/marked/test/new/sanitize_links.md create mode 100644 packages/markdown/marked/test/new/smartypants.html create mode 100644 packages/markdown/marked/test/new/smartypants.md create mode 100644 packages/markdown/marked/test/new/smartypants_code.html create mode 100644 packages/markdown/marked/test/new/smartypants_code.md create mode 100644 packages/markdown/marked/test/new/table_cells.html create mode 100644 packages/markdown/marked/test/new/table_cells.md create mode 100644 packages/markdown/marked/test/new/toplevel_paragraphs.html create mode 100644 packages/markdown/marked/test/new/toplevel_paragraphs.md create mode 100644 packages/markdown/marked/test/new/tricky_list.html create mode 100644 packages/markdown/marked/test/new/tricky_list.md create mode 100644 packages/markdown/marked/test/new/uppercase_hex.html create mode 100644 packages/markdown/marked/test/new/uppercase_hex.md (limited to 'packages/markdown/marked/test/new') diff --git a/packages/markdown/marked/test/new/adjacent_lists.html b/packages/markdown/marked/test/new/adjacent_lists.html new file mode 100644 index 00000000..b4cd8f50 --- /dev/null +++ b/packages/markdown/marked/test/new/adjacent_lists.html @@ -0,0 +1,9 @@ + + +
    +
  1. This should be
  2. +
  3. An unordered list
  4. +
diff --git a/packages/markdown/marked/test/new/adjacent_lists.md b/packages/markdown/marked/test/new/adjacent_lists.md new file mode 100644 index 00000000..3fd460b3 --- /dev/null +++ b/packages/markdown/marked/test/new/adjacent_lists.md @@ -0,0 +1,5 @@ +* This should be +* An unordered list + +1. This should be +2. An unordered list diff --git a/packages/markdown/marked/test/new/autolink_lines.html b/packages/markdown/marked/test/new/autolink_lines.html new file mode 100644 index 00000000..aa2bed4d --- /dev/null +++ b/packages/markdown/marked/test/new/autolink_lines.html @@ -0,0 +1,3 @@ +

hello world +http://example.com +

diff --git a/packages/markdown/marked/test/new/autolink_lines.md b/packages/markdown/marked/test/new/autolink_lines.md new file mode 100644 index 00000000..c9b61a2c --- /dev/null +++ b/packages/markdown/marked/test/new/autolink_lines.md @@ -0,0 +1,2 @@ +hello world + diff --git a/packages/markdown/marked/test/new/autolinks.html b/packages/markdown/marked/test/new/autolinks.html new file mode 100644 index 00000000..8fa4837e --- /dev/null +++ b/packages/markdown/marked/test/new/autolinks.html @@ -0,0 +1,15 @@ +

(See https://www.example.com/fhqwhgads.)

+ +

((http://foo.com))

+ +

((http://foo.com.))

+ +

HTTP://FOO.COM

+ +

hTtP://fOo.CoM

+ +

hello@email.com

+ +

me@example.com

+ +

test@test.com

\ No newline at end of file diff --git a/packages/markdown/marked/test/new/autolinks.md b/packages/markdown/marked/test/new/autolinks.md new file mode 100644 index 00000000..1f5f739c --- /dev/null +++ b/packages/markdown/marked/test/new/autolinks.md @@ -0,0 +1,15 @@ +(See https://www.example.com/fhqwhgads.) + +((http://foo.com)) + +((http://foo.com.)) + +HTTP://FOO.COM + +hTtP://fOo.CoM + +~~hello@email.com~~ + +**me@example.com** + +__test@test.com__ \ No newline at end of file diff --git a/packages/markdown/marked/test/new/blockquote_list_item.html b/packages/markdown/marked/test/new/blockquote_list_item.html new file mode 100644 index 00000000..83cf0bdd --- /dev/null +++ b/packages/markdown/marked/test/new/blockquote_list_item.html @@ -0,0 +1,3 @@ +

This fails in markdown.pl and upskirt:

+ + diff --git a/packages/markdown/marked/test/new/blockquote_list_item.md b/packages/markdown/marked/test/new/blockquote_list_item.md new file mode 100644 index 00000000..19e93829 --- /dev/null +++ b/packages/markdown/marked/test/new/blockquote_list_item.md @@ -0,0 +1,4 @@ +This fails in markdown.pl and upskirt: + +* hello + > world diff --git a/packages/markdown/marked/test/new/case_insensitive_refs.html b/packages/markdown/marked/test/new/case_insensitive_refs.html new file mode 100644 index 00000000..c54388ea --- /dev/null +++ b/packages/markdown/marked/test/new/case_insensitive_refs.html @@ -0,0 +1 @@ +

hi

diff --git a/packages/markdown/marked/test/new/case_insensitive_refs.md b/packages/markdown/marked/test/new/case_insensitive_refs.md new file mode 100644 index 00000000..598915a8 --- /dev/null +++ b/packages/markdown/marked/test/new/case_insensitive_refs.md @@ -0,0 +1,3 @@ +[hi] + +[HI]: /url diff --git a/packages/markdown/marked/test/new/cm_autolinks.html b/packages/markdown/marked/test/new/cm_autolinks.html new file mode 100644 index 00000000..e7ae0ee4 --- /dev/null +++ b/packages/markdown/marked/test/new/cm_autolinks.html @@ -0,0 +1,91 @@ +

Here are some valid autolinks:

+ +

Example 565

+ +

http://foo.bar.baz

+ +

Example 566

+ +

http://foo.bar.baz/test?q=hello&id=22&boolean

+ +

Example 567

+ +

irc://foo.bar:2233/baz

+ +

Example 568

+ +

Uppercase is also fine:

+ +

MAILTO:FOO@BAR.BAZ

+ +

Note that many strings that count as absolute URIs for purposes of this spec are not valid URIs, because their schemes are not registered or because of other problems with their syntax:

+ +

Example 569

+ +

a+b+c:d

+ +

Example 570

+ +

made-up-scheme://foo,bar

+ +

Example 571

+ +

http://../

+ +

Example 572

+ +

localhost:5001/foo

+ +

Example 573

+ +

Spaces are not allowed in autolinks:

+ +

<http://foo.bar/baz bim>

+ +

Example 574

+ +

Backslash-escapes do not work inside autolinks:

+ +

http://example.com/\[\

+ +

Examples of email autolinks:

+ +

Example 575

+ +

foo@bar.example.com

+ +

Example 576

+ +

foo+special@Bar.baz-bar0.com

+ +

Example 577

+ +

Backslash-escapes do not work inside email autolinks:

+ +

<foo+@bar.example.com>

+ +

These are not autolinks:

+ +

Example 578

+ +

<>

+ +

Example 579

+ +

< http://foo.bar >

+ +

Example 580

+ +

<m:abc>

+ +

Example 581

+ +

<foo.bar.baz>

+ +

Example 582

+ +

http://example.com

+ +

Example 583

+ +

foo@bar.example.com

\ No newline at end of file diff --git a/packages/markdown/marked/test/new/cm_autolinks.md b/packages/markdown/marked/test/new/cm_autolinks.md new file mode 100644 index 00000000..a19d830c --- /dev/null +++ b/packages/markdown/marked/test/new/cm_autolinks.md @@ -0,0 +1,96 @@ +--- +gfm: false +mangle: false +--- + +Here are some valid autolinks: + +### Example 565 + + + +### Example 566 + + + +### Example 567 + + + +### Example 568 + +Uppercase is also fine: + + + +Note that many strings that count as absolute URIs for purposes of this spec are not valid URIs, because their schemes are not registered or because of other problems with their syntax: + +### Example 569 + + + +### Example 570 + + + +### Example 571 + + + +### Example 572 + + + +### Example 573 + +Spaces are not allowed in autolinks: + + + +### Example 574 + +Backslash-escapes do not work inside autolinks: + + + +Examples of email autolinks: + +### Example 575 + + + +### Example 576 + + + +### Example 577 + +Backslash-escapes do not work inside email autolinks: + + + +These are not autolinks: + +### Example 578 + +<> + +### Example 579 + +< http://foo.bar > + +### Example 580 + + + +### Example 581 + + + +### Example 582 + +http://example.com + +### Example 583 + +foo@bar.example.com \ No newline at end of file diff --git a/packages/markdown/marked/test/new/cm_blockquotes.html b/packages/markdown/marked/test/new/cm_blockquotes.html new file mode 100644 index 00000000..b4d51b1f --- /dev/null +++ b/packages/markdown/marked/test/new/cm_blockquotes.html @@ -0,0 +1,233 @@ +

Example 191

+ +
+

Foo

+

bar +baz

+
+ +

Example 192

+ +

The spaces after the > characters can be omitted:

+ +
+

Bar

+

bar +baz

+
+ +

Example 193

+ +

The > characters can be indented 1-3 spaces:

+ +
+

Baz

+

bar +baz

+
+ +

Example 194

+ +

Four spaces gives us a code block:

+ +
> # Qux
+> bar
+> baz
+ +

Example 195

+ +

The Laziness clause allows us to omit the > before paragraph continuation text:

+ +
+

Quux

+

bar +baz

+
+ +

Example 196

+ +

A block quote can contain some lazy and some non-lazy continuation lines:

+ +
+

bar +baz +foo

+
+ +

Example 197

+ +

Laziness only applies to lines that would have been continuations of paragraphs had they been prepended with block quote markers. For example, the > cannot be omitted in the second line of

+ +
+

foo

+
+
+ +

without changing the meaning.

+ +

Example 198

+ +
Similarly, if we omit the `>` in the second line then the block quote ends after the first line:
+
+> - foo
+- bar
+ +

Example 199

+ +

For the same reason, we can’t omit the > in front of subsequent lines of an indented or fenced code block:

+ +
+
foo
+
+
bar
+ +

Example 200

+ +
> ```
+foo
+```
+
+<blockquote>
+<pre><code></code></pre>
+</blockquote>
+<p>foo</p>
+<pre><code></code></pre>
+ +

Example 201

+
> foo
+    - bar
+
+<blockquote>
+<p>foo
+- bar</p>
+</blockquote>
+ +

Example 202

+ +

A block quote can be empty:

+ +
+
+ +

Example 203

+ +
+
+ +

Example 204

+ +

A block quote can have initial or final blank lines:

+ +
+

foo

+
+ + +

Example 205

+ +

A blank line always separates block quotes:

+ +
+

foo

+
+
+

bar

+
+ +

Example 206

+ +

Consecutiveness means that if we put these block quotes together, we get a single block quote:

+ +
+

foo +bar

+
+ +

Example 207

+ +

To get a block quote with two paragraphs, use:

+ +
+

foo

+

bar

+
+ +

Example 208

+ +

Block quotes can interrupt paragraphs:

+ +

foo

+
+

bar

+
+ +

Example 209

+ +

In general, blank lines are not needed before or after block quotes:

+ +
+

aaa

+
+
+
+

bbb

+
+ +

Example 210

+ +

However, because of laziness, a blank line is needed between a block quote and a following paragraph:

+ +
+

bar +baz

+
+ +

Example 211

+ +
+

bar

+
+

baz

+ +

Example 212

+ +
+

bar

+
+

baz

+ +

Example 213

+ +

It is a consequence of the Laziness rule that any number of initial >s may be omitted on a continuation line of a nested block quote:

+ +
+
+
+

foo +bar

+
+
+
+ +

Example 214

+ +
+
+
+

foo +bar +baz

+
+
+
+ +

Example 215

+ +

When including an indented code block in a block quote, remember that the block quote marker includes both the > and a following space. So five spaces are needed after the >:

+ +
+
code
+
+
+

not code

+
diff --git a/packages/markdown/marked/test/new/cm_blockquotes.md b/packages/markdown/marked/test/new/cm_blockquotes.md new file mode 100644 index 00000000..6a80a6f3 --- /dev/null +++ b/packages/markdown/marked/test/new/cm_blockquotes.md @@ -0,0 +1,189 @@ +### Example 191 + +> # Foo +> bar +> baz + +### Example 192 + +The spaces after the `>` characters can be omitted: + +># Bar +>bar +> baz + +### Example 193 + +The `>` characters can be indented 1-3 spaces: + + > # Baz + > bar + > baz + +### Example 194 + +Four spaces gives us a code block: + + > # Qux + > bar + > baz + +### Example 195 + +The Laziness clause allows us to omit the `>` before paragraph continuation text: + +> # Quux +> bar +baz + +### Example 196 + +A block quote can contain some lazy and some non-lazy continuation lines: + +> bar +baz +> foo + +### Example 197 + +Laziness only applies to lines that would have been continuations of paragraphs had they been prepended with block quote markers. For example, the `>` cannot be omitted in the second line of + +> foo +--- + +without changing the meaning. + +### Example 198 + + Similarly, if we omit the `>` in the second line then the block quote ends after the first line: + + > - foo + - bar + +### Example 199 + +For the same reason, we can’t omit the `>` in front of subsequent lines of an indented or fenced code block: + +> foo + + bar + +### Example 200 + + > ``` + foo + ``` + +
+
+
+

foo

+
+ +### Example 201 + + > foo + - bar + +
+

foo + - bar

+
+ +### Example 202 + +A block quote can be empty: + +> + +### Example 203 + +> +> +> + +### Example 204 + +A block quote can have initial or final blank lines: + +> +> foo +> + +### Example 205 + +A blank line always separates block quotes: + +> foo + +> bar + +### Example 206 + +Consecutiveness means that if we put these block quotes together, we get a single block quote: + +> foo +> bar + +### Example 207 + +To get a block quote with two paragraphs, use: + +> foo +> +> bar + +### Example 208 + +Block quotes can interrupt paragraphs: + +foo +> bar + +### Example 209 + +In general, blank lines are not needed before or after block quotes: + +> aaa +*** +> bbb + +### Example 210 + +However, because of laziness, a blank line is needed between a block quote and a following paragraph: + +> bar +baz + +### Example 211 + +> bar + +baz + +### Example 212 + +> bar +> +baz + +### Example 213 + +It is a consequence of the Laziness rule that any number of initial `>`s may be omitted on a continuation line of a nested block quote: + +> > > foo +bar + +### Example 214 + +>>> foo +> bar +>>baz + +### Example 215 + +When including an indented code block in a block quote, remember that the block quote marker includes both the `>` and a following space. So five spaces are needed after the `>`: + +> code + +> not code diff --git a/packages/markdown/marked/test/new/cm_html_blocks.html b/packages/markdown/marked/test/new/cm_html_blocks.html new file mode 100644 index 00000000..80fdff57 --- /dev/null +++ b/packages/markdown/marked/test/new/cm_html_blocks.html @@ -0,0 +1,300 @@ +

HTML blocks

+ +

Example 116

+ +
+
+**Hello**,
+

world. +

+
+ +

Example 117

+ + + + + +
+ hi +
+

okay.

+ +

Example 118

+ + +*foo* + +

Example 120

+ +
+

Markdown

+
+ +

Example 121

+ +
+
+ +

Example 122

+ +
+
+ +

Example 123

+ +
+*foo* +

bar

+ +

Example 124

+ +
Example 125 + +
Example 126 + +
Example 127 + + + +

Example 128

+ +
+foo +
+ +

Example 129

+ +
+``` c +int x = 33; +``` + +

Example 130

+ + +*bar* + + +

Example 131

+ + +*bar* + + +

Example 132

+ + +*bar* + + +

Example 133

+ + +*bar* + +

Example 134

+ + +*foo* + + +

Example 135

+ + +

foo

+
+ +

Example 136

+ +

foo

+ +

Example 137

+ +

+import Text.HTML.TagSoup
+
+main :: IO ()
+main = print $ parseTags tags
+
+

okay

+ +

Example 138

+ + +

okay

+ +

Example 139

+ + +

okay

+ +

Example 141

+ +
+
+foo +
+

bar

+ +

Example 142

+ +
    +
  • +
    +
  • +
  • foo
  • +
+ +

Example 143

+ + +

foo

+ +

Example 144

+ +*bar* +

baz

+ +

Example 145

+ +1. *bar* + +

Example 146

+ + +

okay

+ +

Example 147

+ +'; + +?> +

okay

+ +

Example 148

+ + + +

Example 149

+ + +

okay

+ +

Example 150

+ + +
<!-- foo -->
+
+ +

Example 151

+ +
+
<div>
+
+ +

Example 152

+ +

Foo

+
+bar +
+ +

Example 153

+ +
+bar +
+*foo* + +

Example 154

+ +

Foo + +baz

+ +

Example 155

+ +
+

Emphasized text.

+
+ +

Example 156

+ +
+*Emphasized* text. +
+ +

Example 157

+ + + + + +
+Hi +
+ +

Example 158

+ + + +
<td>
+  Hi
+</td>
+
+ +
+ +

Example 140

+ +

If there is no matching end tag, the block will end at the end of the document (or the enclosing block quote or list item):

+ + +okay + +### Example 141 + +>
+> foo + +bar + +### Example 142 + +-
+- foo + +### Example 143 + + +*foo* + +### Example 144 + +*bar* +*baz* + +### Example 145 + +1. *bar* + +### Example 146 + + +okay + +### Example 147 + +'; + +?> +okay + +### Example 148 + + + +### Example 149 + + +okay + +### Example 150 + + + + + +### Example 151 + +
+ +
+ +### Example 152 + +Foo +
+bar +
+ +### Example 153 + +
+bar +
+*foo* + +### Example 154 + +Foo +
+baz + +### Example 155 + +
+ +*Emphasized* text. + +
+ +### Example 156 + +
+*Emphasized* text. +
+ +### Example 157 + + + + + + + + + +
+Hi +
+ +### Example 158 + + + + + + + + + +
+ Hi +
+ +### Example 140 + +If there is no matching end tag, the block will end at the end of the document (or the enclosing block quote or list item): + +