diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el index 74e36f15d90..6b70f2aced9 100644 --- a/lisp/textmodes/markdown-ts-mode.el +++ b/lisp/textmodes/markdown-ts-mode.el @@ -3221,6 +3221,7 @@ ARGS are captured by `markdown-ts--maybe-run-command-in-code-block'." (memq command markdown-ts-code-block-ignore-output-commands)) (source-buffer (current-buffer))) (with-work-buffer + (setq mark-active nil) ; See bug#81111. (insert str) (goto-char adj-point) ;; Propagate mark (and region).