Merge branch 'kachkaev-remark-by-default'
This commit is contained in:
commit
4e2476f4f0
|
@ -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.
|
||||||
|
|
|
@ -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)** |
|
||||||
|
|
|
@ -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`
|
||||||
|
|
||||||
|
|
|
@ -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: " "
|
||||||
|
|
|
@ -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!')
|
||||||
|
```
|
|
@ -0,0 +1,9 @@
|
||||||
|
Header 1
|
||||||
|
========
|
||||||
|
|
||||||
|
Header 2
|
||||||
|
--------
|
||||||
|
|
||||||
|
### Header 3
|
||||||
|
|
||||||
|
Hello!
|
|
@ -0,0 +1,3 @@
|
||||||
|
An example of __bold__ and _italics_.
|
||||||
|
|
||||||
|
Another example of __bold__ and _italics_.
|
|
@ -1,5 +1,4 @@
|
||||||
- item
|
- item
|
||||||
|
|
||||||
1. one
|
1. one
|
||||||
2. two
|
2. two
|
||||||
3. three
|
3. three
|
|
@ -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!')
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Header 1
|
||||||
|
|
||||||
|
## Header 2
|
||||||
|
|
||||||
|
### Header 3
|
||||||
|
|
||||||
|
Hello!
|
|
@ -0,0 +1,3 @@
|
||||||
|
An example of **bold** and *italics*.
|
||||||
|
|
||||||
|
Another example of __bold__ and _italics_.
|
|
@ -1,11 +1,11 @@
|
||||||
# heading 1
|
# heading 1
|
||||||
|
|
||||||
- item
|
- item
|
||||||
- item
|
- item
|
||||||
- item
|
- item
|
||||||
|
|
||||||
## heading 2
|
## heading 2
|
||||||
|
|
||||||
1. one
|
1. one
|
||||||
2. two
|
2. two
|
||||||
3. three
|
3. three
|
||||||
|
|
|
@ -13,15 +13,12 @@ pets:
|
||||||
- bat
|
- bat
|
||||||
match: !!js/regexp /pattern/gim
|
match: !!js/regexp /pattern/gim
|
||||||
run: !!js/function function() { }
|
run: !!js/function function() { }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- item
|
- item
|
||||||
- item
|
- item
|
||||||
- item
|
- item
|
||||||
|
|
||||||
1. one
|
1. one
|
||||||
2. two
|
2. two
|
||||||
2. three
|
3. three
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: this is my title
|
title: this is my title
|
||||||
description: this is my description
|
description: this is my description
|
||||||
---
|
---
|
||||||
|
|
||||||
test ing
|
test
|
||||||
|
ing
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -18,7 +18,7 @@ module.exports = {
|
||||||
"md"
|
"md"
|
||||||
]
|
]
|
||||||
|
|
||||||
defaultBeautifier: "Tidy Markdown"
|
defaultBeautifier: "Remark"
|
||||||
|
|
||||||
options:
|
options:
|
||||||
gfm:
|
gfm:
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue