diff --git a/test/specs/commonMark/compare.marked.md b/test/specs/commonMark/compare.marked.md index 085a59271..b08bd5f4b 100644 --- a/test/specs/commonMark/compare.marked.md +++ b/test/specs/commonMark/compare.marked.md @@ -1,83 +1,8 @@ ## Compare with `marked.js` -Marked.js failed examples count: 38 +Marked.js failed examples count: 29 MarkText failed examples count: 0 -**Example23** - -MarkText success and marked.js fail - -```markdown -Markdown content -[foo] - -[foo]: /bar\* "ti\*tle" - -Expected Html -

foo

- -Actural Html -

foo

- -marked.js html -

foo

- -``` - -**Example24** - -MarkText success and marked.js fail - -```markdown -Markdown content -\`\`\` foo\+bar -foo -\`\`\` - -Expected Html -
foo
-
- -Actural Html -
foo
- -marked.js html -
foo
-
- -``` - -**Example28** - -MarkText success and marked.js fail - -```markdown -Markdown content -  &x; &#; &#x; -� -&#abcdef0; -&ThisIsNotDefined; &hi?; - -Expected Html -

&nbsp &x; &#; &#x; -� -&#abcdef0; -&ThisIsNotDefined; &hi?;

- -Actural Html -

&nbsp &x; &#; &#x; -� -&#abcdef0; -&ThisIsNotDefined; &hi?;

- -marked.js html -

&nbsp &x; &#; &#x; -� -&#abcdef0; -&ThisIsNotDefined; &hi?;

- -``` - **Example32** MarkText success and marked.js fail @@ -118,173 +43,36 @@ marked.js html ``` -**Example34** - -MarkText success and marked.js fail - -```markdown -Markdown content -\`\`\` föö -foo -\`\`\` - -Expected Html -
foo
-
- -Actural Html -
foo
- -marked.js html -
foo
-
- -``` - -**Example81** +**Example93** MarkText success and marked.js fail ```markdown Markdown content -Foo *bar -baz* -==== - -Expected Html -

Foo bar -baz

- -Actural Html -

Foo bar -baz -====

- -marked.js html -

Foo bar -baz -====

- -``` - -**Example82** - -MarkText success and marked.js fail - -```markdown -Markdown content - Foo *bar -baz* -==== - -Expected Html -

Foo bar -baz

- -Actural Html -

Foo bar -baz
====

- -marked.js html -

Foo bar -baz
====

- -``` - -**Example95** - -MarkText success and marked.js fail - -```markdown -Markdown content -Foo -Bar ---- - -Expected Html -

Foo -Bar

- -Actural Html -

Foo -Bar

-
- -marked.js html -

Foo -Bar

-
- -``` - -**Example195** - -MarkText success and marked.js fail - -```markdown -Markdown content -[Foo bar]: - -'title' - -[Foo bar] - -Expected Html -

Foo bar

- -Actural Html -

[Foo bar]: - -'title'

-

[Foo bar]

- -marked.js html -

[Foo bar]: - -'title'

-

[Foo bar]

- -``` - -**Example200** - -MarkText success and marked.js fail - -```markdown -Markdown content -[foo]: <> - -[foo] - -Expected Html -

foo

- -Actural Html -

foo

- -marked.js html -

foo

- -``` - -**Example202** - -MarkText success and marked.js fail - -```markdown -Markdown content -[foo]: /url\bar\*baz "foo\"bar\baz" - -[foo] +> foo +bar +=== Expected Html -

foo

+
+

foo +bar +===

+
Actural Html -

foo

+
+

foo +bar +===

+
marked.js html -

foo

+
+

foo +bar +===

+
``` @@ -836,4 +624,4 @@ marked.js html ``` -There are 38 examples are different with marked.js. \ No newline at end of file +There are 29 examples are different with marked.js. \ No newline at end of file diff --git a/test/specs/gfm/gfm.0.29.json b/test/specs/gfm/gfm.0.29.json index 3ba7e7366..261379749 100644 --- a/test/specs/gfm/gfm.0.29.json +++ b/test/specs/gfm/gfm.0.29.json @@ -61,8 +61,8 @@ }, { "section": "Strikethrough", - "html": "

Hi Hello, world!

", - "markdown": "~~Hi~~ Hello, world!", + "html": "

Hi Hello, there world!

", + "markdown": "~~Hi~~ Hello, ~there~ world!", "example": 491 }, { @@ -71,76 +71,100 @@ "markdown": "This ~~has a\n\nnew paragraph~~.", "example": 492 }, + { + "section": "Strikethrough", + "html": "

This will ~~~not~~~ strike.

", + "markdown": "This will ~~~not~~~ strike.", + "example": 493 + }, { "section": "Autolinks", "html": "

www.commonmark.org

", "markdown": "www.commonmark.org", - "example": 621 + "example": 622 }, { "section": "Autolinks", "html": "

Visit www.commonmark.org/help for more information.

", "markdown": "Visit www.commonmark.org/help for more information.", - "example": 622 + "example": 623 }, { "section": "Autolinks", "html": "

Visit www.commonmark.org.

\n

Visit www.commonmark.org/a.b.

", "markdown": "Visit www.commonmark.org.\n\nVisit www.commonmark.org/a.b.", - "example": 623 + "example": 624 }, { "section": "Autolinks", "html": "

www.google.com/search?q=Markup+(business)

\n

www.google.com/search?q=Markup+(business)))

\n

(www.google.com/search?q=Markup+(business))

\n

(www.google.com/search?q=Markup+(business)

", "markdown": "www.google.com/search?q=Markup+(business)\n\nwww.google.com/search?q=Markup+(business)))\n\n(www.google.com/search?q=Markup+(business))\n\n(www.google.com/search?q=Markup+(business)", - "example": 624 + "example": 625 }, { "section": "Autolinks", "html": "

www.google.com/search?q=(business))+ok

", "markdown": "www.google.com/search?q=(business))+ok", - "example": 625 + "example": 626 }, { "section": "Autolinks", "html": "

www.google.com/search?q=commonmark&hl=en

\n

www.google.com/search?q=commonmark&hl;

", "markdown": "www.google.com/search?q=commonmark&hl=en\n\nwww.google.com/search?q=commonmark&hl;", - "example": 626 + "example": 627 }, { "section": "Autolinks", "html": "

www.commonmark.org/he<lp

", "markdown": "www.commonmark.org/hehttp://commonmark.org

\n

(Visit https://encrypted.google.com/search?q=Markup+(business))

", "markdown": "http://commonmark.org\n\n(Visit https://encrypted.google.com/search?q=Markup+(business))", - "example": 628 + "example": 629 }, { "section": "Autolinks", "html": "

foo@bar.baz

", "markdown": "foo@bar.baz", - "example": 629 + "example": 630 }, { "section": "Autolinks", "html": "

hello@mail+xyz.example isn't valid, but hello+xyz@mail.example is.

", "markdown": "hello@mail+xyz.example isn't valid, but hello+xyz@mail.example is.", - "example": 630 + "example": 631 }, { "section": "Autolinks", "html": "

a.b-c_d@a.b

\n

a.b-c_d@a.b.

\n

a.b-c_d@a.b-

\n

a.b-c_d@a.b_

", "markdown": "a.b-c_d@a.b\n\na.b-c_d@a.b.\n\na.b-c_d@a.b-\n\na.b-c_d@a.b_", - "example": 631 + "example": 632 + }, + { + "section": "Autolinks", + "html": "

mailto:foo@bar.baz

\n

mailto:a.b-c_d@a.b

\n

mailto:a.b-c_d@a.b.

\n

mailto:a.b-c_d@a.b/

\n

mailto:a.b-c_d@a.b-

\n

mailto:a.b-c_d@a.b_

\n

xmpp:foo@bar.baz

\n

xmpp:foo@bar.baz.

", + "markdown": "mailto:foo@bar.baz\n\nmailto:a.b-c_d@a.b\n\nmailto:a.b-c_d@a.b.\n\nmailto:a.b-c_d@a.b/\n\nmailto:a.b-c_d@a.b-\n\nmailto:a.b-c_d@a.b_\n\nxmpp:foo@bar.baz\n\nxmpp:foo@bar.baz.", + "example": 633 + }, + { + "section": "Autolinks", + "html": "

xmpp:foo@bar.baz/txt

\n

xmpp:foo@bar.baz/txt@bin

\n

xmpp:foo@bar.baz/txt@bin.com

", + "markdown": "xmpp:foo@bar.baz/txt\n\nxmpp:foo@bar.baz/txt@bin\n\nxmpp:foo@bar.baz/txt@bin.com", + "example": 634 + }, + { + "section": "Autolinks", + "html": "

xmpp:foo@bar.baz/txt/bin

", + "markdown": "xmpp:foo@bar.baz/txt/bin", + "example": 635 }, { "section": "Disallowed Raw HTML", "html": "

<title> <style>

\n
\n <xmp> is disallowed. <XMP> is also disallowed.\n
", "markdown": " <style> <em>\n\n<blockquote>\n <xmp> is disallowed. <XMP> is also disallowed.\n</blockquote>", - "example": 653 + "example": 657 } ] diff --git a/test/specs/gfm/gfm.0.29.md b/test/specs/gfm/gfm.0.29.md index 54d8eea41..7c7d21ac7 100644 --- a/test/specs/gfm/gfm.0.29.md +++ b/test/specs/gfm/gfm.0.29.md @@ -1,12 +1,12 @@ ## Test Result -Total test 24 examples, and failed 0 examples: +Total test 28 examples, and failed 0 examples: | Section | Failed/Total | Percentage | |:-----------------:|:-------------:|:-------------:| | Tables | 0/8 | 100.00% | | Task list items | 0/2 | 100.00% | -| Strikethrough | 0/2 | 100.00% | -| Autolinks | 0/11 | 100.00% | +| Strikethrough | 0/3 | 100.00% | +| Autolinks | 0/14 | 100.00% | |Disallowed Raw HTML| 0/1 | 100.00% |