diff --git a/test/fixtures/remarkable/README.md b/test/fixtures/remarkable/README.md deleted file mode 100644 index 786f2e3..0000000 --- a/test/fixtures/remarkable/README.md +++ /dev/null @@ -1,13 +0,0 @@ -We need to track compatibility with another implementation. - -- By default try to use fixtures from another packs -- `remarked` / `marked` fixtures are preferable, because stmd data - is partially outdated. -- If fixtures are missed or conflicting - create new ones here. - -Rules: - -1. Keep folders structure similar to [stmd](https://github.com/jgm/stmd) tests. -2. Don't forget to write case descriptions in fixtures. -3. Keep file name in lowercase, with underline for words separation. - diff --git a/test/fixtures/remarkable/code/fence_matching.html b/test/fixtures/remarkable/code/fence_matching.html deleted file mode 100644 index 5c8833a..0000000 --- a/test/fixtures/remarkable/code/fence_matching.html +++ /dev/null @@ -1,8 +0,0 @@ -
```
-
-

-`````
-
-````
-
-
diff --git a/test/fixtures/remarkable/code/fence_matching.md b/test/fixtures/remarkable/code/fence_matching.md deleted file mode 100644 index d86169a..0000000 --- a/test/fixtures/remarkable/code/fence_matching.md +++ /dev/null @@ -1,10 +0,0 @@ -````abc -``` -```` -``````blah - -````` - -```` - -``````````` diff --git a/test/fixtures/remarkable/code/fenced_code_blocks.html b/test/fixtures/remarkable/code/fenced_code_blocks.html deleted file mode 100644 index 5452844..0000000 --- a/test/fixtures/remarkable/code/fenced_code_blocks.html +++ /dev/null @@ -1,24 +0,0 @@ -

This is a fenced code block:

-
pairs :: [(Int,Char)]
-pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']]
-
-

Here is one with tildes:

-
pairs :: [(Int,Char)]
-pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']]
-
-

More metadata:

-
pairs :: [(Int,Char)]
-pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']]
-
-

More backticks:

-
pairs :: [(Int,Char)]
-pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']]
-
-backticks :: String
-backticks = "`````"
-
-

Without an end:

-
code with
-no end
-
-
diff --git a/test/fixtures/remarkable/code/fenced_code_blocks.md b/test/fixtures/remarkable/code/fenced_code_blocks.md deleted file mode 100644 index 6ccc6be..0000000 --- a/test/fixtures/remarkable/code/fenced_code_blocks.md +++ /dev/null @@ -1,35 +0,0 @@ -This is a fenced code block: -```haskell -pairs :: [(Int,Char)] -pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']] -``` -Here is one with tildes: - -~~~ haskell -pairs :: [(Int,Char)] -pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']] -~~~ - -More metadata: - -```haskell numberLines start=50 -pairs :: [(Int,Char)] -pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']] -``` - -More backticks: - -```````` haskell -pairs :: [(Int,Char)] -pairs = [(x,y) | x <- [0..10], y <- ['a'..'z']] - -backticks :: String -backticks = "`````" -````````````` - -Without an end: - -``` -code with -no end - diff --git a/test/fixtures/remarkable/strikeout.txt b/test/fixtures/remarkable/strikeout.txt new file mode 100644 index 0000000..8a7c05e --- /dev/null +++ b/test/fixtures/remarkable/strikeout.txt @@ -0,0 +1,5 @@ +. +~~Strikeout~~ +. +

Strikeout

+. \ No newline at end of file diff --git a/test/fixtures/remarkable/typographer.txt b/test/fixtures/remarkable/typographer.txt new file mode 100644 index 0000000..f21b03d --- /dev/null +++ b/test/fixtures/remarkable/typographer.txt @@ -0,0 +1,30 @@ +copyright +. +(c) (C) +. +

© ©

+. + + +reserved +. +(r) (R) +. +

® ®

+. + + +trademark +. +(tm) (TM) +. +

™ ™

+. + + +plus-minus +. ++/-5 +. +

±5

+. diff --git a/test/remarkable.js b/test/remarkable.js index 6cb3e6e..98b7d82 100644 --- a/test/remarkable.js +++ b/test/remarkable.js @@ -12,8 +12,9 @@ var Remarked = require('../'); describe('Default', function () { var md = new Remarked({ breaks: false, - langPrefix: '' + langPrefix: '', + typographer: true }); - utils.addTests(path.join(__dirname, 'fixtures/remarkable'), md); + utils.addSpecTests(path.join(__dirname, 'fixtures/remarkable'), md); });