From 31ba6daa89c067c436e64d6ed36f4f88fa55f4be Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Tue, 27 Aug 2019 22:45:16 +0930 Subject: [PATCH] test: compatibility with hexo-renderer-marked@1 (#98) --- package.json | 2 +- test/asset/source/_expected/katex/hello-world.md.expected | 4 ++++ test/asset/source/_expected/katex/tag.md.expected | 5 +++-- test/asset/source/_expected/mathjax/hello-world.md.expected | 4 ++++ test/asset/source/_expected/mathjax/tag.md.expected | 5 +++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ad24db3..86a4d39 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "clean": "rimraf test/site", - "pretest:clone": "git clone --recursive https://github.com/hexojs/hexo-starter.git ./test/site && cd ./test/site && git checkout a4d537", + "pretest:clone": "git clone --recursive https://github.com/hexojs/hexo-starter.git ./test/site", "pretest:asset": "cpx \"test/asset/**/*\" test/site", "pretest:bootstrap": "npm --prefix=test/site install", "pretest": "run-s clean pretest:clone pretest:asset pretest:bootstrap", diff --git a/test/asset/source/_expected/katex/hello-world.md.expected b/test/asset/source/_expected/katex/hello-world.md.expected index 39b69f6..8c3cfe7 100644 --- a/test/asset/source/_expected/katex/hello-world.md.expected +++ b/test/asset/source/_expected/katex/hello-world.md.expected @@ -1,9 +1,13 @@
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
diff --git a/test/asset/source/_expected/katex/tag.md.expected b/test/asset/source/_expected/katex/tag.md.expected index 264b5c6..f3ade91 100644 --- a/test/asset/source/_expected/katex/tag.md.expected +++ b/test/asset/source/_expected/katex/tag.md.expected @@ -1,5 +1,6 @@This equation is inline.
This used to cause problem: .
This should be rendered as block:
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
diff --git a/test/asset/source/_expected/mathjax/tag.md.expected b/test/asset/source/_expected/mathjax/tag.md.expected index 2a9b4b0..ea37fa4 100644 --- a/test/asset/source/_expected/mathjax/tag.md.expected +++ b/test/asset/source/_expected/mathjax/tag.md.expected @@ -1,5 +1,6 @@This equation $\cos 2\theta = \cos^2 \theta - \sin^2 \theta = 2 \cos^2 \theta - 1$ is inline.
This used to cause problem: $\frac{|ax + by + c|}{\sqrt{a^{2}+b^{2}}}$.
This should be rendered as block: This should be rendered as block:
$$\frac{\partial u}{\partial t}
+