Przeglądaj źródła

Move the test syntax files into separate repo

simov 7 lat temu
rodzic
commit
6f3a55f39f

+ 0 - 4
test/encoding/big5.md

@@ -1,4 +0,0 @@
-
-# BIG5 (Chinese Traditional)
-
-    §A¦n

+ 0 - 4
test/encoding/utf-8.md

@@ -1,4 +0,0 @@
-
-# UTF-8 (Unicode)
-
-    λ

+ 0 - 4
test/encoding/windows-1251.md

@@ -1,4 +0,0 @@
-
-# Windows-1251 (Cyrillic)
-
-    الِـّْو

+ 0 - 340
test/syntax/highlighting.md

@@ -1,340 +0,0 @@
-
-# Syntax Highlighting
-
-#### actionscript
-
-```actionscript
-var some = new actionscript();
-```
-
-#### apacheconf
-
-```apacheconf
-ServerName apacheconf
-```
-
-#### applescript
-
-```applescript
-display alert "Hello, world!"
-```
-
-#### aspnet
-
-```aspnet
-<asp:Label runat="server" id="aspnet"></asp:Label>
-```
-
-#### bash
-
-```bash
-$some = "bash";
-```
-
-#### basic
-
-```basic
-Dim basic As Integer
-```
-
-#### batch
-
-```batch
-set some="batch"
-```
-
-#### c
-
-```c
-char some = "c";
-```
-
-#### coffeescript
-
-```coffeescript
-some = "coffeescript"
-```
-
-#### cpp
-
-```cpp
-char some = "cpp";
-```
-
-#### csharp
-
-```csharp
-string some = "csharp";
-```
-
-#### css
-
-```css
-#some { content: 'css'; }
-```
-
-#### d
-
-```d
-int mySum(int a, int b) pure nothrow
-```
-
-#### dart
-
-```dart
-var some = "dart";
-```
-
-#### diff
-
-```diff
-     not changed
--    removed
-+    added
-```
-
-#### docker
-
-```docker
-MAINTAINER docker
-```
-
-#### elixir
-
-```elixir
-IO.puts "Hello World!"
-```
-
-#### erlang
-
-```erlang
-module(erlang).
-```
-
-#### flow
-
-```flow
-function foo(x: ?number): string {}
-```
-
-#### fsharp
-
-```fsharp
-let mutable x = 1
-```
-
-#### go
-
-```go
-type go string
-```
-
-#### graphql
-
-```graphql
-type Query {hero: Character}
-```
-
-#### haskell
-
-```haskell
-haskell :: Str -> String
-```
-
-#### html
-
-```html
-<p id="some">html</p>
-```
-
-#### java
-
-```java
-public static final void main java();
-```
-
-#### javascript
-
-```javascript
-let some = 'javascript';
-```
-
-#### js
-
-```js
-const some = 'js';
-```
-
-#### json
-
-```json
-{"some": "json"}
-```
-
-#### jsonp
-
-```jsonp
-function({"some": "jsonp"})
-```
-
-#### latex
-
-```latex
-$\sqrt{3x-1}+(1+x)^2$
-```
-
-#### lua
-
-```lua
-local some = "lua"
-```
-
-#### makefile
-
-```makefile
-check: makefile
-```
-
-#### markdown
-
-```markdown
-`some` **markdown**
-```
-
-#### nginx
-
-```nginx
-server_name nginx;
-```
-
-#### objectivec
-
-```objectivec
-char some = "objectivec";
-```
-
-#### ocaml
-
-```ocaml
-let sum xs = List.fold_left (fun acc x -> acc + x) 0 xs;;
-```
-
-#### perl
-
-```perl
-$some = "perl";
-```
-
-#### php
-
-```php
-$some = "php";
-```
-
-#### prolog
-
-```prolog
-some('prolog', 1972)
-```
-
-#### python
-
-```python
-some = 'python'
-```
-
-#### r
-
-```r
-x <- c(1, 2, 3, 4, 5, 6)
-```
-
-#### reason
-
-```reason
-let merge: (('a, 'a) => bool, list('a), list('a)) => list('a);
-```
-
-#### ruby
-
-```ruby
-some = "ruby"
-```
-
-#### rust
-
-```rust
-let some = 'rust';
-```
-
-#### sass
-
-```sass
-@include sass;
-```
-
-#### scala
-
-```scala
-def formatApples(x: Int) = "I ate %d apples".format(x)
-```
-
-#### scheme
-
-```scheme
-(define some 'scheme')
-```
-
-#### scss
-
-```scss
-@include scss;
-```
-
-#### smalltalk
-
-```smalltalk
-'some smalltalk'
-```
-
-#### sql
-
-```sql
-select * from `language` where `name` = 'sql';
-```
-
-#### swift
-
-```swift
-var some = "swift"
-```
-
-#### typescript
-
-```typescript
-var some: string = "typescript";
-```
-
-#### vbnet
-
-```vbnet
-Function ReadLine(Optional prompt As String = Nothing) As String
-```
-
-#### wasm
-
-```wasm
-(import "math" "exp" (func $exp (param f64) (result f64))
-```
-
-#### xml
-
-```xml
-<some name="xml"></some>
-```
-
-#### yaml
-
-```yaml
-- language: yaml
-```

+ 0 - 237
test/syntax/mathjax.md

@@ -1,237 +0,0 @@
-
-# MathJax
-
-## Delimiters
-
-Delimiter                         | Delimiters  | Example                     | Result                    | Support
-:---                              | :---:       | :---                        | :---:                     | :---:
-No delimiters                     | `str`       | `\sqrt{3x-1}+(1+x)^2`       | \sqrt{3x-1}+(1+x)^2       | no
-Bracket without backslash         | `[str]`     | `[\sqrt{3x-1}+(1+x)^2]`     | [\sqrt{3x-1}+(1+x)^2]     | no
-Single backslash with bracket     | `\[str\]`   | `\[\sqrt{3x-1}+(1+x)^2\]`   | \[\sqrt{3x-1}+(1+x)^2\]   | **yes**
-Double backslash with bracket     | `\\[str\\]` | `\\[\sqrt{3x-1}+(1+x)^2\\]` | \\[\sqrt{3x-1}+(1+x)^2\\] | no
-Parentheses without backslash     | `(str)`     | `(\sqrt{3x-1}+(1+x)^2)`     | (\sqrt{3x-1}+(1+x)^2)     | no
-Single backslash with parentheses | `\(str\)`   | `\(\sqrt{3x-1}+(1+x)^2\)`   | \(\sqrt{3x-1}+(1+x)^2\)   | **yes**
-Double backslash with parentheses | `\\(str\\)` | `\\(\sqrt{3x-1}+(1+x)^2\\)` | \\(\sqrt{3x-1}+(1+x)^2\\) | no
-Single dollar sign                | `$str$`     | `$\sqrt{3x-1}+(1+x)^2$`     | $\sqrt{3x-1}+(1+x)^2$     | **yes**
-Double dollar sign                | `$$str$$`   | `$$\sqrt{3x-1}+(1+x)^2$$`   | $$\sqrt{3x-1}+(1+x)^2$$   | **yes**
-
-## Empty
-
-- `\(\)` \(\)
-- `$$` $$
-- `\[\]` \[\]
-- `$$$$` $$$$
-
-## Single Character
-
-- `\(a\)` \(a\)
-- `$a$` $a$
-- `\[a\]` \[a\]
-- `$$a$$` $$a$$
-
-## Multiple on single line
-
-- `\(a\)` \(a\) `\(b\)` \(b\)
-- `$a$` $a$ `$b$` $b$
-- `\[a\]` \[a\] `\[b\]` \[b\]
-- `$$a$$` $$a$$ `$$b$$` $$b$$
-
-## Underscore `_`
-
-## `\(` single line `\)`
-
-`\(x_i = x_\gamma\)` \(x_i = x_\gamma\)
-
-## `\(` multiline `\)`
-
-```
-\(
-x_i = x_\gamma
-\)
-```
-
-\(
-x_i = x_\gamma
-\)
-
----
-
-## `\[` single line `\]`
-
-`\[x_i = x_\gamma\]` \[x_i = x_\gamma\]
-
-## `\[` multiline `\]`
-
-```
-\[
-x_i = x_\gamma
-\]
-```
-
-\[
-x_i = x_\gamma
-\]
-
----
-
-## `$` single line `$`
-
-`$x_i = x_\gamma$` $x_i = x_\gamma$
-
-## `$` multiline `$` Not Supported!
-
-```
-$
-x_i = x_\gamma
-$
-```
-
-$
-x_i = x_\gamma
-$
-
----
-
-## `$$` single line `$$`
-
-`$$x_i = x_\gamma$$` $$x_i = x_\gamma$$
-
-## `$$` multiline `$$`
-
-```
-$$
-x_i = x_\gamma
-$$
-```
-
-$$
-x_i = x_\gamma
-$$
-
----
-
-## `\begin{}` multiline `\end{}`
-
-```
-\begin{align}
-x_i = x_\gamma
-\end{align}
-```
-
-\begin{align}
-x_i = x_\gamma
-\end{align}
-
----
-
-## Escapes
-
-### Dollar Sign
-
-`\$6.20 and \$0.5` \$6.20 and \$0.5
-
-`$4.40` $4.40
-
----
-
-# Examples
-
-# Using TeX notation
-
-When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
-$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
-
----
-
-# Several examples of TeX equations
-
-## The Lorenz Equations
-
-\begin{align}
-\dot{x} & = \sigma(y-x) \\
-\dot{y} & = \rho x - y - xz \\
-\dot{z} & = -\beta z + xy
-\end{align}
-
-## The Cauchy-Schwarz Inequality
-
-\[
-\left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
- \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
-\]
-
-## A Cross Product Formula
-
-\[
-  \mathbf{V}_1 \times \mathbf{V}_2 =
-   \begin{vmatrix}
-    \mathbf{i} & \mathbf{j} & \mathbf{k} \\
-    \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
-    \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\
-   \end{vmatrix}
-\]
-
-## The probability of getting \(k\) heads when flipping \(n\) coins is:
-
-\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
-
-## An Identity of Ramanujan
-
-\[
-   \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
-     1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
-      {1+\frac{e^{-8\pi}} {1+\ldots} } } }
-\]
-
-## A Rogers-Ramanujan Identity
-
-\[
-  1 +  \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
-    \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
-     \quad\quad \text{for $|q|<1$}.
-\]
-
-## Maxwell's Equations
-
-\begin{align}
-  \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\
-  \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
-  \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
-  \nabla \cdot \vec{\mathbf{B}} & = 0
-\end{align}
-
-## In-line Mathematics
-
-Finally, while display equations look good for a page of samples, the
-ability to mix math and text in a paragraph is also important.  This
-expression \(\sqrt{3x-1}+(1+x)^2\) is an example of an inline equation.  As
-you see, MathJax equations can be used this way as well, without unduly
-disturbing the spacing between lines.
-
----
-
-# Misc
-
-- $E = mc^2$
-
-- \( A_i = B_i + C_i \sum_{k=0}^{i} D_k E^k \)
-
-- \begin{eqnarray}
-  A_i &=& B_i + C_i \sum_{k=0}^{i} D_k E^k \\
-  F_i &=& \int_{-\infty}^{x_i} f(x) dx
-\end{eqnarray}
-
-- $\frac{w_x}{\sum_z x_z}$
-- $\frac{w}{\sum_{z} x_z}$
-- $x_\gamma = x_i$
-- $x_i = x_\gamma$
-
-Cost function of logistic regression (revision):
-
-$$J(\theta) = - \frac{1}{m} \sum_{i=1}^m [ y^{(i)}\ \log (h_\theta (x^{(i)})) + (1 - y^{(i)})\ \log (1 - h_\theta(x^{(i)}))] + \frac{\lambda}{2m}\sum_{j=1}^n \theta_j^2$$
-
-For Neural Networks, it is:
-
-$$
-J(\Theta) = - \frac{1}{m} \sum_{i=1}^m \sum_{k=1}^K \left[y^{(i)}_k \log ((h_\Theta (x^{(i)}))_k) + (1 - y^{(i)}_k)\log (1 - (h_\Theta(x^{(i)}))_k)\right] + \frac{\lambda}{2m}\sum_{l=1}^{L-1} \sum_{p=1}^{s_l} \sum_{n=1}^{s_{l+1}} ( \Theta_{n,p}^{(l)})^2
-$$

+ 0 - 391
test/syntax/syntax.md

@@ -1,391 +0,0 @@
-
-# h1
-
-h1
-===
-
-## h2
-
-h2
----
-
-### h3
-
-#### h4
-
-##### h5
-
-###### h6
-
-#h1
-
-##h2
-
-###h3
-
-####h4
-
-#####h5
-
-######h6
-
-# 测试一
-## 测试二
-### 测试三
-
-# a/b c-d
-
-
-# Horizontal Line
-
----
-
-***
-
-___
-
-- - -
-
-* * *
-
-_ _ _
-
-
-# List
-
-- ul
-  - ul
-    - ul
-
-
-* ul
-  * ul
-    * ul
-
-
-+ ul
-  + ul
-    + ul
-
-
-+ ul
-  - ul
-    * ul
-
-
-- ul
-    - ul
-        - ul
-
-
-1. ol
-  1. ol
-    1. ol
-
-
-1. ol
-    1. ol
-        1. ol
-
-
-# Text Formatting
-
-**bold**
-
-__bold__
-
-*italic*
-
-_italic_
-
-`inline code`
-
-> blockquote
-
-
-## Combinations
-
-> first
->> second
-> > > third
-> blockquote
-
-*`something`*
-
-**`something`**
-
-_`something`_
-
-__`something`__
-
-***`something`***
-
-___`something`___
-
-__*`something`*__
-
-*__`something`__*
-
-**_`something`_**
-
-_**`something`**_
-
-> `blockquote`
-
-> **`blockquote`**
-
-> ***`blockquote`***
-
-
-# Link
-
-[link with inline URL](https://github.com/simov/markdown-viewer)
-
-[link with index][1]
-
-[named link][some-url]
-
-[some-url]
-
-[some-url][]
-
-[parentheses in URL](https://en.wikipedia.org/wiki/Scheme_(programming_language))
-
-[escaped parentheses in URL](https://en.wikipedia.org/wiki/Scheme_\(programming_language\))
-
-<[email protected]>
-
-<https://github.com/simov/markdown-viewer>
-
-https://github.com/simov/markdown-viewer
-
-
-# Image
-
-![named-image]
-
-![2]
-
-![2][]
-
-![][2]
-
-[![3]][some-url]
-
-[![named-image]][some-url]
-
-![](http://i.imgur.com/rKYxW.jpg "Inline Alt Text")
-
-[![](http://i.imgur.com/rKYxW.jpg)](https://github.com/simov/markdown-viewer)
-
-  [1]: https://github.com/simov/markdown-viewer
-  [2]: http://i.imgur.com/rKYxW.jpg (Image Index)
-  [3]: http://i.imgur.com/rKYxW.jpg (Image Index with Link)
-  [named-image]: http://i.imgur.com/rKYxW.jpg "Named Image"
-  [some-url]: https://github.com/simov/markdown-viewer
-
-
-# Code Block
-
-    code block using indentation
-
-```
-fenced code block using backtick
-```
-
-~~~
-fenced code block using tilde
-~~~
-
-
-# GFM
-
-
-## Table
-
-table        | col             | col                | col
----          | :---            | :---:              | ---:
-default      | align left      | centered           | align right
-default left | align left left | something centered | something align right
-default      | align left      | centered           | align right
-
-
-## Strikethrough
-
-~~strikethrough~~
-
-~~`something`~~
-
-~~**`something`**~~
-
-~~***`something`***~~
-
-~~__`something`__~~
-
-~~___`something`___~~
-
-~~__*`something`*__~~
-
-~~*__`something`__*~~
-
-~~**_`something`_**~~
-
-~~_**`something`**_~~
-
-> ~~**_`something`_**~~
-
-
-## Task List
-
-- [x] task
-- [ ] task
-
-
-# HTML
-
-<h2>HTML Tags</h2>
-<div style="text-decoration: underline;">
-  <p><strong>bold</strong> and underline</p>
-</div>
-
-
-## Details/Summary
-
-<details>
-<summary>Click to Expand</summary>
-
-```js
-var code = 'block'
-```
-
-### Inner Header
-
-[link](https://github.com/simov/markdown-viewer)
-</details>
-
-
-## Definition List
-
-<dl>
-  <dt>Name</dt>
-  <dd>Godzilla</dd>
-  <dt>Born</dt>
-  <dd>1952</dd>
-  <dt>Birthplace</dt>
-  <dd>Japan</dd>
-  <dt>Color</dt>
-  <dd>Green</dd>
-</dl>
-
-
-## KBD
-
-<kbd>the kbd tag</kbd>
-
-
-## Supscript/subscript
-
-- 19<sup>th</sup>
-- H<sub>2</sub>O
-
-
-# Extras
-
-## Emoji
-
-- shortcode: :wave: :alien:
-- unicode: 👋 👽
-- ascii: :D :/
-
-
-## MathJax
-
-- [Examples and Syntax](mathjax.md)
-
-
-## Syntax Highlighting
-
-- [Examples and Syntax](highlighting.md)
-
-
-## Frontmatter
-
-- [yaml](yaml.md)
-- [toml](toml.md)
-
-
-## Escapes
-
-<em\>HTML tags</em\>
-
-\\ \` \* \_ \{ \} \# \+ \- \. \! \[ \] \( \)
-
-`` `\(` ``
-
-````
-```
-fenced code block
-```
-````
-
-## Mention
-
-@simov
-
-
-## Footnotes
-
-
-Something something[^named]
-
-And something else[^1], and a link[^2]
-
-
-[^1]: This reference footnote contains a paragraph...
-
-    * ...and a list
-
-[^2]: https://github.com/simov/markdown-viewer
-[^named]: https://github.com/simov/markdown-viewer
-
-
----
-
-
-# Quirks
-
-1. item 1
-
-```
-code block
-```
-
-2. item 2
-
-3. item 3
-
-# Nested tables in lists
-
-case 0: a table at indentation level 0, after a paragraph (at level 0) -- this should render the table not-indented
-
-|A|B|
-|---|---|
-|1|2|
-
-* case 1: a table at indentation level 1, after a list item at level 1 -- this should render the table indented once
-
-    |A|B|
-    |---|---|
-    |1|2|
-
-    * case 2: a table at indentation level 2, after a list item at level 2 -- this should render the table indented twice
-
-        |A|B|
-        |---|---|
-        |1|2|
-
-case 3: a table at indentation level 1, after a a paragraph (at level 0) -- this should render the raw text into a code block
-
-    |A|B|
-    |---|---|
-    |1|2|

+ 0 - 17
test/syntax/toml.md

@@ -1,17 +0,0 @@
-+++
-title = Headline level one
-tags = [ "tag1", "tag2", "tag3" ]
-description = something
-+++
-
-This page contains TOML front matter:
-
-```
-+++
-title = Headline level one
-tags = [ "tag1", "tag2", "tag3" ]
-description = something
-+++
-```
-
-It should be ignored if you use the `Remark` compiler.

+ 0 - 19
test/syntax/yaml.md

@@ -1,19 +0,0 @@
----
-title: Headline level one
-tags: [ "tag1", "tag2", "tag3" ]
-description:
-unicode: —
----
-
-This page contains [YAML](http://yaml.org) front matter:
-
-```yaml
----
-title: Headline level one
-tags: [ "tag1", "tag2", "tag3" ]
-description:
-unicode: —
----
-```
-
-It should be ignored if you use the `Remark` compiler.