Merge pull request #1253 from vmuriart/fix-remark6.0.1

Fix remark6.0.1
This commit is contained in:
Glavin Wiechert 2016-10-08 17:40:27 -03:00 committed by GitHub
commit bfb8df936a
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).toString()
resolve cleanMarkdown
catch err
@error("Remark error: #{err}")