Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 454 forks source link

Add support to Markdown Footnotes #2465

Open tjapro opened 4 years ago

tjapro commented 4 years ago

Description

The results of beautification are not what I expect.

Input Before Beautification

This is what the code looked like before:

blabla[^1]
[^1]: footnote blabla

Expected Output

The beautified code should have looked like this:

blabla[^1]
[^1]: footnote blabla

Actual Output

The beautified code actually looked like this:

blabla[^1]
[^1]]: footnote blabla

Steps to Reproduce

  1. Add code to Atom editor
  2. Open a .md file with footnotes
  3. Run command Atom Beautify: Beautify Editor
  4. This beautified code does not look right!

Debug

See https://github.com/remarkjs/remark/issues/486

Here is a link to the debug.md Gist: https://gist.github.com/TJProgrammer/a15408da00a098e724f1ffe559e1d576

Checklist

I have:

tjapro commented 4 years ago

Some thoughts about this?