Function: markdown-cycle-bold
markdown-cycle-bold is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-cycle-bold)
Documentation
Cycle bold markup between underscores and asterisks.
Assumes match data is available for markdown-regex-bold.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-cycle-bold ()
"Cycle bold markup between underscores and asterisks.
Assumes match data is available for `markdown-regex-bold'."
(save-excursion
(let* ((old-delim (match-string 3))
(new-delim (if (string-equal old-delim "**") "__" "**")))
(replace-match new-delim t t nil 3)
(replace-match new-delim t t nil 5))))