branch: elpa/markdown-mode commit 55dcd7d165b23494a4462fad43ec9666bfabd174 Author: MrChenWithCapsule <mr.chenwithcaps...@outlook.com> Commit: GitHub <nore...@github.com>
Update markdown-table-align to allow tabs before a delimiter Co-authored-by: Shohei YOSHIDA <syo...@gmail.com> --- markdown-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown-mode.el b/markdown-mode.el index c32fa3e..aba9e6f 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -9087,7 +9087,7 @@ This function assumes point is on a table." (indent (progn (looking-at "[ \t]*") (match-string 0))) ;; Split table in lines and save column format specifier (lines (mapcar (lambda (l) - (if (string-match-p "\\`[ \t]*| *[-:]" l) + (if (string-match-p "\\`[ \t]*|[ \t]*[-:]" l) (progn (setq fmtspec (or fmtspec l)) nil) l)) (markdown--split-string (buffer-substring begin end) "\n"))) ;; Split lines in cells