diff --git a/CHANGELOG.md b/CHANGELOG.md index 47c2e8c..32ecf1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/package.json b/package.json index 667b81c..497e15c 100644 --- a/package.json +++ b/package.json @@ -110,6 +110,10 @@ { "name": "Elias Baryshnikov", "url": "https://github.com/qwemaze" + }, + { + "name": "Victor Uriarte", + "url": "https://github.com/vmuriart" } ], "engines": { diff --git a/src/beautifiers/remark.coffee b/src/beautifiers/remark.coffee index 4883dd5..2f34ca9 100644 --- a/src/beautifiers/remark.coffee +++ b/src/beautifiers/remark.coffee @@ -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}")