Function: markdown-insert-italic

markdown-insert-italic is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-insert-italic)

Documentation

Insert markup to make a region or word italic.

If there is an active region, make the region italic. If the point is at a non-italic word, make the word italic. If the point is at an italic word or phrase, remove the italic markup. Otherwise, simply insert italic delimiters and place the point in between them.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-insert-italic ()
  "Insert markup to make a region or word italic.
If there is an active region, make the region italic.  If the point
is at a non-italic word, make the word italic.  If the point is at an
italic word or phrase, remove the italic markup.  Otherwise, simply
insert italic delimiters and place the point in between them."
  (interactive)
  (let ((delim (if markdown-italic-underscore "_" "*")))
    (markdown--insert-common delim delim markdown-regex-italic 1 3 'markdown-italic-face t)))