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 -
- -Actural Html - - -marked.js html - - -``` - -**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;
-
-abcdef0;
-&ThisIsNotDefined; &hi?;
-
-Expected Html
-  &x; &#; &#x; -� -&#abcdef0; -&ThisIsNotDefined; &hi?;
- -Actural Html -  &x; &#; - -abcdef0; -&ThisIsNotDefined; &hi?;
- -marked.js html -  &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 -====
- -marked.js html -Foo bar -baz -====
- -``` - -**Example82** - -MarkText success and marked.js fail - -```markdown -Markdown content - Foo *bar -baz* -==== - -Expected Html - Foo bar
-baz
====
Foo bar
-baz
====
Foo -Bar
-Foo -Bar
-[Foo bar]:
-
[Foo bar]
- -marked.js html -[Foo bar]:
-
[Foo bar]
- -``` - -**Example200** - -MarkText success and marked.js fail - -```markdown -Markdown content -[foo]: <> - -[foo] - -Expected Html - - -Actural Html - - -marked.js html - - -``` - -**Example202** - -MarkText success and marked.js fail - -```markdown -Markdown content -[foo]: /url\bar\*baz "foo\"bar\baz" - -[foo] +> foo +bar +=== Expected Html - ++Actural Html - +foo +bar +===
+
+marked.js html - +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": "foo +bar +===
+
Hi Hello, world!
Hi Hello, there world!
This will ~~~not~~~ strike.
", + "markdown": "This will ~~~not~~~ strike.", + "example": 493 + }, { "section": "Autolinks", "html": "", "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.
\nVisit 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)
\nwww.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
\nwww.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": "", "markdown": "www.commonmark.org/he(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": "", "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": "\n\na.b-c_d@a.b-
\na.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": "\n\n\n\nmailto:a.b-c_d@a.b-
\nmailto:a.b-c_d@a.b_
\n\n", + "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": "\n\n", + "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": "", + "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": "