commit
bfb8df936a
|
@ -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).toString()
|
||||
resolve cleanMarkdown
|
||||
catch err
|
||||
@error("Remark error: #{err}")
|
||||
|
|
Loading…
Reference in New Issue