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.

Quick Start

Create a new post

1
$ hexo new "My New Post"
+

More info: Writing

Run server

1
$ hexo server
+

More info: Server

Generate static files

1
$ hexo generate
+

More info: Generating

Deploy to remote sites

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 cos2θ=cos2θsin2θ=2cos2θ1\cos 2\theta = \cos^2 \theta - \sin^2 \theta = 2 \cos^2 \theta - 1 is inline.
This used to cause problem: ax+by+ca2+b2\frac{|ax + by + c|}{\sqrt{a^{2}+b^{2}}}.

-

This should be rendered as block:
ut=h2(2ux2+2uy2+2uz2)\frac{\partial u}{\partial t} +

This should be rendered as block:

+ut=h2(2ux2+2uy2+2uz2)\frac{\partial u}{\partial t} = h^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + -\frac{\partial^2 u}{\partial z^2}\right)

+\frac{\partial^2 u}{\partial z^2}\right) diff --git a/test/asset/source/_expected/mathjax/hello-world.md.expected b/test/asset/source/_expected/mathjax/hello-world.md.expected index 39b69f6..8c3cfe7 100644 --- a/test/asset/source/_expected/mathjax/hello-world.md.expected +++ b/test/asset/source/_expected/mathjax/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.

Quick Start

Create a new post

1
$ hexo new "My New Post"
+

More info: Writing

Run server

1
$ hexo server
+

More info: Server

Generate static files

1
$ hexo generate
+

More info: Generating

Deploy to remote sites

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:
$$\frac{\partial u}{\partial t} +

This should be rendered as block:

+$$\frac{\partial u}{\partial t} = h^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + -\frac{\partial^2 u}{\partial z^2}\right)$$

+\frac{\partial^2 u}{\partial z^2}\right)$$