Update to new remark api.
Change was documented on v5.0 release https://github.com/wooorm/remark/commit/8108fe5
This commit is contained in:
parent
1f312a94cc
commit
0c28d39fe6
|
@ -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.
|
||||
|
|
|
@ -110,6 +110,10 @@
|
|||
{
|
||||
"name": "Elias Baryshnikov",
|
||||
"url": "https://github.com/qwemaze"
|
||||
},
|
||||
{
|
||||
"name": "Victor Uriarte",
|
||||
"url": "https://github.com/vmuriart"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue