Open saf-dmitry opened 6 years ago
I also have this problem with tables and fill.
I'm using doom emacs and tried adding the following to my config.el, which didn't seem to work:
(setq-hook! 'markdown-mode-hook
fill-nobreak-predicate (cons #'markdown-table-at-point-p nil t
fill-nobreak-predicate))
Indented pipe tables like this
or GFM tables like this
get wrapped by paragraph filling commands and functions like
M-q
(fill-paragraph
).Expected Behavior
Paragraph filling commands should ignore table lines.
Actual Behavior
Paragraph filling commands work on table lines like on ordinary text.
Suggested Solution
Add
markdown-table-at-point-p
predicate function tofill-nobreak-predicate
hook:Software Versions