summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorSimeon Simeonov2023-12-05 22:47:46 +0100
committerSimeon Simeonov2023-12-05 22:47:46 +0100
commit7d08994f744685d6237ae3b4defde3eb2441fa42 (patch)
tree7ab9e1aeb87267b9a00666da271ba8cb356817fd /.emacs.d
parent8b78096aff14de20a1a423f30f7ce5abc247acef (diff)
Upgrade markdown-mode
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/markdown-mode.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/.emacs.d/lisp/markdown-mode.el b/.emacs.d/lisp/markdown-mode.el
index 0771060..f1aee9d 100644
--- a/.emacs.d/lisp/markdown-mode.el
+++ b/.emacs.d/lisp/markdown-mode.el
@@ -9300,16 +9300,17 @@ This function assumes point is on a table."
9300 (goto-char (point-min)) 9300 (goto-char (point-min))
9301 (let ((cur (point)) 9301 (let ((cur (point))
9302 ret) 9302 ret)
9303 (while (re-search-forward "\\s-*\\(|\\)\\s-*" nil t) 9303 (while (and (re-search-forward "\\s-*\\(|\\)\\s-*" nil t))
9304 (if (markdown--first-column-p (match-beginning 1)) 9304 (when (not (markdown--face-p (match-beginning 1) '(markdown-inline-code-face)))
9305 (setq cur (match-end 0)) 9305 (if (markdown--first-column-p (match-beginning 1))
9306 (cond ((eql (char-before (match-beginning 1)) ?\\) 9306 (setq cur (match-end 0))
9307 ;; keep spaces 9307 (cond ((eql (char-before (match-beginning 1)) ?\\)
9308 (goto-char (match-end 1))) 9308 ;; keep spaces
9309 ((markdown--thing-at-wiki-link (match-beginning 1))) ;; do nothing 9309 (goto-char (match-end 1)))
9310 (t 9310 ((markdown--thing-at-wiki-link (match-beginning 1))) ;; do nothing
9311 (push (buffer-substring-no-properties cur (match-beginning 0)) ret) 9311 (t
9312 (setq cur (match-end 0)))))) 9312 (push (buffer-substring-no-properties cur (match-beginning 0)) ret)
9313 (setq cur (match-end 0)))))))
9313 (when (< cur (length line)) 9314 (when (< cur (length line))
9314 (push (buffer-substring-no-properties cur (point-max)) ret)) 9315 (push (buffer-substring-no-properties cur (point-max)) ret))
9315 (nreverse ret)))) 9316 (nreverse ret))))