Update to new remark api.

Change was documented on v5.0 release

https://github.com/wooorm/remark/commit/8108fe5
This commit is contained in:
Victor Uriarte 2016-10-08 11:06:27 -07:00
parent 1f312a94cc
commit 0c28d39fe6
3 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# dev
- Update to `remark`'s new API and fix [#1196](https://github.com/Glavin001/atom-beautify/issues/1196)
- Add beautifier for the Lua language.
- Add [ocp-indent](https://github.com/OCamlPro/ocp-indent) beautifier for the OCaml language.
- Add [elm-format](https://github.com/avh4/elm-format) beautifier for the Elm language.

View File

@ -110,6 +110,10 @@
{
"name": "Elias Baryshnikov",
"url": "https://github.com/qwemaze"
},
{
"name": "Victor Uriarte",
"url": "https://github.com/vmuriart"
}
],
"engines": {

View File

@ -36,7 +36,7 @@ module.exports = class Remark extends Beautifier
return new @Promise((resolve, reject) ->
try
remark = require 'remark'
cleanMarkdown = remark.process(text, options)
cleanMarkdown = remark().process(text, options)
resolve cleanMarkdown
catch err
@error("Remark error: #{err}")