branch: externals/valign
commit 1e9e16b30a562cddf65aceba525613eb798ee78d
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>

    * valign.el (valign--align-separator-row): New implementation for gfm-mode.
---
 valign.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/valign.el b/valign.el
index 33fcd90..6afdaa6 100644
--- a/valign.el
+++ b/valign.el
@@ -393,7 +393,7 @@ POS-LIST is a list of positions for each column’s right 
bar."
   ((type (eql markdown-mode)) (style (eql multi-column)) pos-list)
   "Align the separator row in multi column style.
 TYPE must be 'markdown-mode, STYLE is 'multi-column.
-POS-LIST is a list of positions for each column’s right bar. "
+POS-LIST is a list of positions for each column’s right bar."
   (ignore type style)
   (let ((p (point))
         (col-idx 0))
@@ -404,6 +404,14 @@ POS-LIST is a list of positions for each column’s right 
bar. "
       (cl-incf col-idx)
       (setq p (point)))))
 
+(cl-defmethod valign--align-separator-row
+  ((type (eql gfm-mode)) (style (eql multi-column)) pos-list)
+  "Align the separator row in multi column style.
+TYPE must be 'gfm-mode, STYLE is 'multi-column.
+POS-LIST is a list of positions for each column’s right bar."
+  (ignore type)
+  (valign--align-separator-row 'markdown-mode style pos-list))
+
 ;;; Userland
 
 (defcustom valign-separator-row-style 'multi-column

Reply via email to