Merge branch 'kachkaev-remark-by-default'

This commit is contained in:
Glavin Wiechert 2018-03-01 22:39:43 -04:00
commit 4e2476f4f0
18 changed files with 86 additions and 23 deletions

View File

@ -1,4 +1,11 @@
# Next # Next
- Switch to Remark as a default markdown beautifier due to a more active state of its community compared to Tidy Markdown ([#2004](https://github.com/Glavin001/atom-beautify/pull/2004)).
This is a __breaking change__ for Tidy Markdown users:
- list indentation is now four characters per level (three spaces after `-` for unordered lists and two spaces after `N.` in ordered lists)
- the contents of frontmatter are no longer formatted
You can easily switch back to the old behaviour by choosing _Tidy Markdown_ in package preferences.
Alternatively, you can customise Remark beautifier with `.jsbeautifyrc` (see [available options](https://github.com/remarkjs/remark/tree/master/packages/remark-stringify#options)).
- Add GN language and beautifier - Add GN language and beautifier
- Add the option to indent Bash with tabs [#1951](https://github.com/Glavin001/atom-beautify/issues/1951) - Add the option to indent Bash with tabs [#1951](https://github.com/Glavin001/atom-beautify/issues/1951)
- See [#1980](https://github.com/Glavin001/atom-beautify/pull/1980). Add VHDL beautifier and language support. - See [#1980](https://github.com/Glavin001/atom-beautify/pull/1980). Add VHDL beautifier and language support.

View File

@ -182,7 +182,7 @@ See [all supported options in the documentation at `docs/options.md`](docs/opti
| LaTeX | `BibTeX`, `LaTeX`, `TeX` |`.bib`, `.tex`, `.sty`, `.cls`, `.dtx`, `.ins`, `.bbx`, `.cbx` | **[`Latex Beautify`](https://github.com/cmhughes/latexindent.pl)** | | LaTeX | `BibTeX`, `LaTeX`, `TeX` |`.bib`, `.tex`, `.sty`, `.cls`, `.dtx`, `.ins`, `.bbx`, `.cbx` | **[`Latex Beautify`](https://github.com/cmhughes/latexindent.pl)** |
| LESS | `LESS` |`.less` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)**, [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Prettier`](https://github.com/prettier/prettier) | | LESS | `LESS` |`.less` | **[`Pretty Diff`](https://github.com/prettydiff/prettydiff)**, [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Prettier`](https://github.com/prettier/prettier) |
| Lua | `Lua` |`.lua`, `.ttslua` | **[`Lua beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.coffee)** | | Lua | `Lua` |`.lua`, `.ttslua` | **[`Lua beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.coffee)** |
| Markdown | `GitHub Markdown` |`.markdown`, `.md` | **[`Tidy Markdown`](https://github.com/slang800/tidy-markdown)**, [`Prettier`](https://github.com/prettier/prettier), [`Remark`](https://github.com/wooorm/remark) | | Markdown | `GitHub Markdown` |`.markdown`, `.md` | **[`Remark`](https://github.com/remarkjs/remark)**, [`Prettier`](https://github.com/prettier/prettier), [`Tidy Markdown`](https://github.com/slang800/tidy-markdown) |
| Marko | `Marko` |`.marko` | **[`Marko Beautifier`](https://github.com/marko-js/marko-prettyprint)** | | Marko | `Marko` |`.marko` | **[`Marko Beautifier`](https://github.com/marko-js/marko-prettyprint)** |
| Mustache | `HTML (Mustache)` |`.mustache` | **[`JS Beautify`](https://github.com/beautify-web/js-beautify)**, [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | | Mustache | `HTML (Mustache)` |`.mustache` | **[`JS Beautify`](https://github.com/beautify-web/js-beautify)**, [`Pretty Diff`](https://github.com/prettydiff/prettydiff) |
| Nginx | `nginx` |`.conf` | **[`Nginx Beautify`](https://github.com/denysvitali/nginxbeautify)** | | Nginx | `nginx` |`.conf` | **[`Nginx Beautify`](https://github.com/denysvitali/nginxbeautify)** |

View File

@ -7844,7 +7844,7 @@ Disable Markdown Beautification
**Important**: This option is only configurable from within Atom Beautify's setting panel. **Important**: This option is only configurable from within Atom Beautify's setting panel.
**Default**: `Tidy Markdown` **Default**: `Remark`
**Type**: `string` **Type**: `string`

View File

@ -56,6 +56,11 @@
indent_size: 4 indent_size: 4
markdown: markdown:
listItemIndent: 1 listItemIndent: 1
strong: '_'
emphasis: '_'
fences: true
fence: '`'
setext: true
jade: jade:
indent_size: 4 indent_size: 4
indent_char: " " 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

@ -1,5 +1,4 @@
- item - item
1. one 1. one
2. two 2. two
3. three 3. three

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_.

View File

@ -13,9 +13,6 @@ pets:
- bat - bat
match: !!js/regexp /pattern/gim match: !!js/regexp /pattern/gim
run: !!js/function function() { } run: !!js/function function() { }
--- ---
- item - item
@ -24,4 +21,4 @@ run: !!js/function function() { }
1. one 1. one
2. two 2. two
2. three 3. three

View File

@ -4,4 +4,5 @@ title: this is my title
description: this is my description description: this is my description
--- ---
test ing test
ing

View File

@ -3,7 +3,7 @@ Beautifier = require('./beautifier')
module.exports = class Remark extends Beautifier module.exports = class Remark extends Beautifier
name: "Remark" name: "Remark"
link: "https://github.com/wooorm/remark" link: "https://github.com/remarkjs/remark"
options: { options: {
_: { _: {
gfm: true gfm: true

View File

@ -18,7 +18,7 @@ module.exports = {
"md" "md"
] ]
defaultBeautifier: "Tidy Markdown" defaultBeautifier: "Remark"
options: options:
gfm: gfm:

View File

@ -4573,7 +4573,7 @@
"title": "Default Beautifier", "title": "Default Beautifier",
"order": -2, "order": -2,
"type": "string", "type": "string",
"default": "Tidy Markdown", "default": "Remark",
"description": "Default Beautifier to be used for Markdown", "description": "Default Beautifier to be used for Markdown",
"enum": [ "enum": [
"Prettier", "Prettier",