From be6deeb6b9e6e96504e7b4f07fd8a2ffded33890 Mon Sep 17 00:00:00 2001 From: chang-ning Date: Wed, 7 Sep 2016 23:48:36 +0800 Subject: [PATCH] Add some test in Ptt.md :ghost: --- test/genSuite.js | 2 -- test/tests/Ptt.md | 21 +++++++++++++++++ test/tests/Ptt.md.out | 54 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 2 deletions(-) diff --git a/test/genSuite.js b/test/genSuite.js index e3b64ab..9626161 100755 --- a/test/genSuite.js +++ b/test/genSuite.js @@ -14,8 +14,6 @@ function genSuite(mdFile, outFile, themeName) { const theme = themes[themeName] , slide = new noslide(mdFile, theme); - console.log(theme); - return slide.parse() .then(slides => { var res = ""; diff --git a/test/tests/Ptt.md b/test/tests/Ptt.md index 3420942..d1f81e4 100644 --- a/test/tests/Ptt.md +++ b/test/tests/Ptt.md @@ -69,3 +69,24 @@ echo -e "Hello noslide.js" | grep "noslide" Quote break. > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote. + +# Image + +![Ptt](../images/ptt.jpg) + + +# HTML + +
+```js
+console.log("Hello HTML");
+```
+
+ +
+
Definition list
+
Is something people use sometimes.
+ +
Markdown in HTML
+
Does not work very well.
+
diff --git a/test/tests/Ptt.md.out b/test/tests/Ptt.md.out index 0f1da83..68cf16f 100644 --- a/test/tests/Ptt.md.out +++ b/test/tests/Ptt.md.out @@ -135,3 +135,57 @@ Quote break.  +d888888b .88b d88. .d8b. d888b d88888b + `88' 88'YbdP`88 d8' `8b 88' Y8b 88' + 88 88 88 88 88ooo88 88 88ooooo + 88 88 88 88 88~~~88 88 ooo 88~~~~~ + .88. 88 88 88 88 88 88. ~8~ 88. +Y888888P YP YP YP YP YP Y888P Y88888P + + + + +              ........              +        .....,::::::::,....         +    ...,;;;;;iiiiiiiiii;;;:,...     +   .,::;1i;iiiiiiiiiiiiiiii;::,..   +  .::;iii:,iiiii::;iiiiiiiiiii;:,.  +.,::iiii:::i;iiii::;iiii;::::;ii::. +::iiiii:::1:,i;::::::;i::;;::,:ii:, +::iii;:::i;::i;,:;;:,;i,:i;:::iiii: +,:iii;:;;:,;;i;,:::::;i,:i;::iiiii: +,:iii1i;::ii::;,:;;:,;i,:i1;:,;iii; +::1ii;::::;::;;,:;:;;i;::i1;:::iii: +,:iii;;;;::::i;,:i::ii;,:i;::::i1;: +.::iiiiii:::i1;,::::,;;::i;::;iii:, +.,,:iii;:;iiii;;iii;;i;::iiiiii;::. +  .::,;iiiiiiiiiiiiiii;,:iiii;::,.  +     ,:::iiiiiiiiiiiiii:ii;:::,     +     ....:::::;iiiii;::::::...      +         .....,,,::,,,.....         + +db db d888888b .88b d88. db +88 88 `~~88~~' 88'YbdP`88 88 +88ooo88 88 88 88 88 88 +88~~~88 88 88 88 88 88 +88 88 88 88 88 88 88booo. +YP YP YP YP YP YP Y88888P + + + + +```js +console.log("Hello HTML"); +``` + + + + + Definition list + Is something people use sometimes. + + Markdown in HTML + Does not work very well. + + + \ No newline at end of file