Add tests for custom Remark options in .jsbeautifyrc

This commit is contained in:
Alexander Kachkaev 2018-02-06 15:55:37 +00:00
parent 1163b93123
commit 74efe30ae0
No known key found for this signature in database
GPG Key ID: DEFE41F826386E2E
9 changed files with 59 additions and 0 deletions

View File

@ -56,6 +56,11 @@
indent_size: 4
markdown:
listItemIndent: 1
strong: '_'
emphasis: '_'
fences: true
fence: '`'
setext: true
jade:
indent_size: 4
indent_char: " "

View File

@ -0,0 +1,17 @@
A code block with correct fences:
```js
console.log('hello world!')
```
A code block with mistyped fences:
```js
console.log('hello world!')
```
Code block with forgotten fences:
```
console.log('hello world!')
```

View File

@ -0,0 +1,9 @@
Header 1
========
Header 2
--------
### Header 3
Hello!

View File

@ -0,0 +1,3 @@
An example of __bold__ and _italics_.
Another example of __bold__ and _italics_.

View File

@ -0,0 +1,15 @@
A code block with correct fences:
```js
console.log('hello world!')
```
A code block with mistyped fences:
~~~js
console.log('hello world!')
~~~
Code block with forgotten fences:
console.log('hello world!')

View File

@ -0,0 +1,7 @@
# Header 1
## Header 2
### Header 3
Hello!

View File

@ -0,0 +1,3 @@
An example of **bold** and *italics*.
Another example of __bold__ and _italics_.