summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-01-19 17:16:00 +0000
committerGitHub <noreply@github.com>2018-01-19 17:16:00 +0000
commit8675bfc4ab28404fa0f40f6257a7894d3274756a (patch)
tree7db360fee5cca5a3da31e05a0a4f19a59f0f80a5
parent7b50b3ec8249af6107a12a03820fb35854014b95 (diff)
parent13c839cf16e6dfb8deab30666748b7ae6c8f9aa0 (diff)
downloadale-8675bfc4ab28404fa0f40f6257a7894d3274756a.zip
Merge pull request #1287 from rhysd/prettier-markdown
Enable prettier to format markdown files
-rw-r--r--README.md2
-rw-r--r--autoload/ale/fix/registry.vim2
-rw-r--r--doc/ale-markdown.txt6
-rw-r--r--doc/ale.txt3
4 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index 42c41f81..29095df3 100644
--- a/README.md
+++ b/README.md
@@ -121,7 +121,7 @@ formatting.
| Lua | [luac](https://www.lua.org/manual/5.1/luac.html), [luacheck](https://github.com/mpeterv/luacheck) |
| Mail | [alex](https://github.com/wooorm/alex) !!, [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale) |
| Make | [checkmake](https://github.com/mrtazz/checkmake) |
-| Markdown | [alex](https://github.com/wooorm/alex) !!, [mdl](https://github.com/mivok/markdownlint), [proselint](http://proselint.com/), [redpen](http://redpen.cc/), [remark-lint](https://github.com/wooorm/remark-lint) !!, [vale](https://github.com/ValeLint/vale), [write-good](https://github.com/btford/write-good) |
+| Markdown | [alex](https://github.com/wooorm/alex) !!, [mdl](https://github.com/mivok/markdownlint), [prettier](https://github.com/prettier/prettier), [proselint](http://proselint.com/), [redpen](http://redpen.cc/), [remark-lint](https://github.com/wooorm/remark-lint) !!, [vale](https://github.com/ValeLint/vale), [write-good](https://github.com/btford/write-good) |
| MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) |
| Nim | [nim check](https://nim-lang.org/docs/nimc.html) !! |
| nix | [nix-instantiate](http://nixos.org/nix/manual/#sec-nix-instantiate) |
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index 53df7ccb..4b692404 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -45,7 +45,7 @@ let s:default_registry = {
\ },
\ 'prettier': {
\ 'function': 'ale#fixers#prettier#Fix',
-\ 'suggested_filetypes': ['javascript', 'typescript', 'json', 'css', 'scss', 'less'],
+\ 'suggested_filetypes': ['javascript', 'typescript', 'json', 'css', 'scss', 'less', 'markdown'],
\ 'description': 'Apply prettier to a file.',
\ },
\ 'prettier_eslint': {
diff --git a/doc/ale-markdown.txt b/doc/ale-markdown.txt
index 3ce9619c..b59f0183 100644
--- a/doc/ale-markdown.txt
+++ b/doc/ale-markdown.txt
@@ -3,6 +3,12 @@ ALE Markdown Integration *ale-markdown-options*
===============================================================================
+prettier *ale-markdown-prettier*
+
+See |ale-javascript-prettier| for information about the available options.
+
+
+===============================================================================
write-good *ale-markdown-write-good*
See |ale-write-good-options|
diff --git a/doc/ale.txt b/doc/ale.txt
index 6cebbce6..b99c800c 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -128,6 +128,7 @@ CONTENTS *ale-contents*
luac................................|ale-lua-luac|
luacheck............................|ale-lua-luacheck|
markdown..............................|ale-markdown-options|
+ prettier............................|ale-markdown-prettier|
write-good..........................|ale-markdown-write-good|
nroff.................................|ale-nroff-options|
write-good..........................|ale-nroff-write-good|
@@ -327,7 +328,7 @@ Notes:
* Lua: `luac`, `luacheck`
* Mail: `alex`!!, `proselint`, `vale`
* Make: `checkmake`
-* Markdown: `alex`!!, `mdl`, `proselint`, `redpen`, `remark-lint`, `vale`, `write-good`
+* Markdown: `alex`!!, `mdl`, `prettier`, `proselint`, `redpen`, `remark-lint`, `vale`, `write-good`
* MATLAB: `mlint`
* Nim: `nim check`!!
* nix: `nix-instantiate`