The effect is as follows

you will see

  • The table is formatted
  • Non-standard + is treated as -, * is treated as _
  • The missing blank lines are filled in, and the extra blank lines are deleted
  • Wrong ordered list was corrected
  • The code is formatted correctly

I mentioned a PR on GitHub, but it should be noted that since I do not use Joplin’s built-in editor So it didn’t deal with details, including

  • Only format the selected part when selected
  • The cursor position before and after formatting should be consistent
  • Support right click, toolbar or use shortcut keys to format