From 2b26bbe78a1a2b8b427963a6c44c3853efdb737e Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 6 Mar 2020 03:52:12 +0200 Subject: Fix: img tag did not allow width and height. Removed swipebox from markdown editor img tag and updated marked markdown to newest version. Thanks to hradec and xet7 ! Closes #2956 --- .../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 deletions(-) delete mode 100644 packages/markdown/marked/test/new/adjacent_lists.html delete mode 100644 packages/markdown/marked/test/new/adjacent_lists.md delete mode 100644 packages/markdown/marked/test/new/autolink_lines.html delete mode 100644 packages/markdown/marked/test/new/autolink_lines.md delete mode 100644 packages/markdown/marked/test/new/autolinks.html delete mode 100644 packages/markdown/marked/test/new/autolinks.md delete mode 100644 packages/markdown/marked/test/new/blockquote_list_item.html delete mode 100644 packages/markdown/marked/test/new/blockquote_list_item.md delete mode 100644 packages/markdown/marked/test/new/case_insensitive_refs.html delete mode 100644 packages/markdown/marked/test/new/case_insensitive_refs.md delete mode 100644 packages/markdown/marked/test/new/cm_autolinks.html delete mode 100644 packages/markdown/marked/test/new/cm_autolinks.md delete mode 100644 packages/markdown/marked/test/new/cm_blockquotes.html delete mode 100644 packages/markdown/marked/test/new/cm_blockquotes.md delete mode 100644 packages/markdown/marked/test/new/cm_html_blocks.html delete mode 100644 packages/markdown/marked/test/new/cm_html_blocks.md delete mode 100644 packages/markdown/marked/test/new/cm_link_defs.html delete mode 100644 packages/markdown/marked/test/new/cm_link_defs.md delete mode 100644 packages/markdown/marked/test/new/cm_links.html delete mode 100644 packages/markdown/marked/test/new/cm_links.md delete mode 100644 packages/markdown/marked/test/new/cm_raw_html.html delete mode 100644 packages/markdown/marked/test/new/cm_raw_html.md delete mode 100644 packages/markdown/marked/test/new/cm_strong_and_em.html delete mode 100644 packages/markdown/marked/test/new/cm_strong_and_em.md delete mode 100644 packages/markdown/marked/test/new/cm_thematic_breaks.html delete mode 100644 packages/markdown/marked/test/new/cm_thematic_breaks.md delete mode 100644 packages/markdown/marked/test/new/code_spans.html delete mode 100644 packages/markdown/marked/test/new/code_spans.md delete mode 100644 packages/markdown/marked/test/new/def_blocks.html delete mode 100644 packages/markdown/marked/test/new/def_blocks.md delete mode 100644 packages/markdown/marked/test/new/double_link.html delete mode 100644 packages/markdown/marked/test/new/double_link.md delete mode 100644 packages/markdown/marked/test/new/em_2char.html delete mode 100644 packages/markdown/marked/test/new/em_2char.md delete mode 100644 packages/markdown/marked/test/new/emphasis_extra tests.html delete mode 100644 packages/markdown/marked/test/new/emphasis_extra tests.md delete mode 100644 packages/markdown/marked/test/new/escaped_angles.html delete mode 100644 packages/markdown/marked/test/new/escaped_angles.md delete mode 100644 packages/markdown/marked/test/new/gfm_autolinks.html delete mode 100644 packages/markdown/marked/test/new/gfm_autolinks.md delete mode 100644 packages/markdown/marked/test/new/gfm_break.html delete mode 100644 packages/markdown/marked/test/new/gfm_break.md delete mode 100644 packages/markdown/marked/test/new/gfm_code.html delete mode 100644 packages/markdown/marked/test/new/gfm_code.md delete mode 100644 packages/markdown/marked/test/new/gfm_code_hr_list.html delete mode 100644 packages/markdown/marked/test/new/gfm_code_hr_list.md delete mode 100644 packages/markdown/marked/test/new/gfm_em.html delete mode 100644 packages/markdown/marked/test/new/gfm_em.md delete mode 100644 packages/markdown/marked/test/new/gfm_hashtag.html delete mode 100644 packages/markdown/marked/test/new/gfm_hashtag.md delete mode 100644 packages/markdown/marked/test/new/gfm_links_invalid.html delete mode 100644 packages/markdown/marked/test/new/gfm_links_invalid.md delete mode 100644 packages/markdown/marked/test/new/gfm_tables.html delete mode 100644 packages/markdown/marked/test/new/gfm_tables.md delete mode 100644 packages/markdown/marked/test/new/headings_id.html delete mode 100644 packages/markdown/marked/test/new/headings_id.md delete mode 100644 packages/markdown/marked/test/new/hr_list_break.html delete mode 100644 packages/markdown/marked/test/new/hr_list_break.md delete mode 100644 packages/markdown/marked/test/new/html_comments.html delete mode 100644 packages/markdown/marked/test/new/html_comments.md delete mode 100644 packages/markdown/marked/test/new/html_no_new_line.html delete mode 100644 packages/markdown/marked/test/new/html_no_new_line.md delete mode 100644 packages/markdown/marked/test/new/images.html delete mode 100644 packages/markdown/marked/test/new/images.md delete mode 100644 packages/markdown/marked/test/new/lazy_blockquotes.html delete mode 100644 packages/markdown/marked/test/new/lazy_blockquotes.md delete mode 100644 packages/markdown/marked/test/new/link_lt.html delete mode 100644 packages/markdown/marked/test/new/link_lt.md delete mode 100644 packages/markdown/marked/test/new/link_tick_redos.html delete mode 100644 packages/markdown/marked/test/new/link_tick_redos.md delete mode 100644 packages/markdown/marked/test/new/links.html delete mode 100644 packages/markdown/marked/test/new/links.md delete mode 100644 packages/markdown/marked/test/new/list_item_text.html delete mode 100644 packages/markdown/marked/test/new/list_item_text.md delete mode 100644 packages/markdown/marked/test/new/list_table.html delete mode 100644 packages/markdown/marked/test/new/list_table.md delete mode 100644 packages/markdown/marked/test/new/main.html delete mode 100644 packages/markdown/marked/test/new/main.md delete mode 100644 packages/markdown/marked/test/new/mangle_xss.html delete mode 100644 packages/markdown/marked/test/new/mangle_xss.md delete mode 100644 packages/markdown/marked/test/new/nested_code.html delete mode 100644 packages/markdown/marked/test/new/nested_code.md delete mode 100644 packages/markdown/marked/test/new/nested_em.html delete mode 100644 packages/markdown/marked/test/new/nested_em.md delete mode 100644 packages/markdown/marked/test/new/nested_square_link.html delete mode 100644 packages/markdown/marked/test/new/nested_square_link.md delete mode 100644 packages/markdown/marked/test/new/nogfm_hashtag.html delete mode 100644 packages/markdown/marked/test/new/nogfm_hashtag.md delete mode 100644 packages/markdown/marked/test/new/not_a_link.html delete mode 100644 packages/markdown/marked/test/new/not_a_link.md delete mode 100644 packages/markdown/marked/test/new/ref_paren.html delete mode 100644 packages/markdown/marked/test/new/ref_paren.md delete mode 100644 packages/markdown/marked/test/new/relative_urls.html delete mode 100644 packages/markdown/marked/test/new/relative_urls.md delete mode 100644 packages/markdown/marked/test/new/same_bullet.html delete mode 100644 packages/markdown/marked/test/new/same_bullet.md delete mode 100644 packages/markdown/marked/test/new/sanitize_links.html delete mode 100644 packages/markdown/marked/test/new/sanitize_links.md delete mode 100644 packages/markdown/marked/test/new/smartypants.html delete mode 100644 packages/markdown/marked/test/new/smartypants.md delete mode 100644 packages/markdown/marked/test/new/smartypants_code.html delete mode 100644 packages/markdown/marked/test/new/smartypants_code.md delete mode 100644 packages/markdown/marked/test/new/table_cells.html delete mode 100644 packages/markdown/marked/test/new/table_cells.md delete mode 100644 packages/markdown/marked/test/new/toplevel_paragraphs.html delete mode 100644 packages/markdown/marked/test/new/toplevel_paragraphs.md delete mode 100644 packages/markdown/marked/test/new/tricky_list.html delete mode 100644 packages/markdown/marked/test/new/tricky_list.md delete mode 100644 packages/markdown/marked/test/new/uppercase_hex.html delete 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 deleted file mode 100644 index b4cd8f50..00000000 --- a/packages/markdown/marked/test/new/adjacent_lists.html +++ /dev/null @@ -1,9 +0,0 @@ - - -
    -
  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 deleted file mode 100644 index 3fd460b3..00000000 --- a/packages/markdown/marked/test/new/adjacent_lists.md +++ /dev/null @@ -1,5 +0,0 @@ -* 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 deleted file mode 100644 index aa2bed4d..00000000 --- a/packages/markdown/marked/test/new/autolink_lines.html +++ /dev/null @@ -1,3 +0,0 @@ -

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

(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 deleted file mode 100644 index 1f5f739c..00000000 --- a/packages/markdown/marked/test/new/autolinks.md +++ /dev/null @@ -1,15 +0,0 @@ -(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 deleted file mode 100644 index 83cf0bdd..00000000 --- a/packages/markdown/marked/test/new/blockquote_list_item.html +++ /dev/null @@ -1,3 +0,0 @@ -

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 deleted file mode 100644 index 19e93829..00000000 --- a/packages/markdown/marked/test/new/blockquote_list_item.md +++ /dev/null @@ -1,4 +0,0 @@ -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 deleted file mode 100644 index c54388ea..00000000 --- a/packages/markdown/marked/test/new/case_insensitive_refs.html +++ /dev/null @@ -1 +0,0 @@ -

hi

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

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 deleted file mode 100644 index a19d830c..00000000 --- a/packages/markdown/marked/test/new/cm_autolinks.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -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 deleted file mode 100644 index b4d51b1f..00000000 --- a/packages/markdown/marked/test/new/cm_blockquotes.html +++ /dev/null @@ -1,233 +0,0 @@ -

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 deleted file mode 100644 index 6a80a6f3..00000000 --- a/packages/markdown/marked/test/new/cm_blockquotes.md +++ /dev/null @@ -1,189 +0,0 @@ -### 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 deleted file mode 100644 index 80fdff57..00000000 --- a/packages/markdown/marked/test/new/cm_html_blocks.html +++ /dev/null @@ -1,300 +0,0 @@ -

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): - -