Skip to content

Commit

Permalink
Merge pull request Glavin001#1253 from vmuriart/fix-remark6.0.1
Browse files Browse the repository at this point in the history
Fix remark6.0.1
  • Loading branch information
Glavin001 committed Oct 8, 2016
2 parents 1f312a9 + 288c11a commit bfb8df9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
{
"name": "Elias Baryshnikov",
"url": "https://github.com/qwemaze"
},
{
"name": "Victor Uriarte",
"url": "https://github.com/vmuriart"
}
],
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/beautifiers/remark.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit bfb8df9

Please sign in to comment.