branch: elpa/markdown-mode
commit f48b1bf1c88179df6c3c8017d936a638c07b175b
Author: Chen Zhenge <mr.chenwithcaps...@outlook.com>
Commit: Chen Zhenge <mr.chenwithcaps...@outlook.com>

    Fix delimiter regex in markdown-table-align
---
 markdown-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 999df6f..c32fa3e 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]*| *[-:]" l)
                                  (progn (setq fmtspec (or fmtspec l)) nil) l))
                            (markdown--split-string (buffer-substring begin 
end) "\n")))
             ;; Split lines in cells

Reply via email to