Function: org-md-verbatim

org-md-verbatim is a byte-compiled function defined in ox-md.el.gz.

Signature

(org-md-verbatim VERBATIM CONTENTS INFO)

Documentation

Transcode VERBATIM object into Markdown format.

CONTENTS is nil. INFO is a plist used as a communication channel.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-md.el.gz
;;;; Code and Verbatim

(defun org-md-verbatim (verbatim _contents _info)
  "Transcode VERBATIM object into Markdown format.
CONTENTS is nil.  INFO is a plist used as a communication
channel."
  (let ((value (org-element-property :value verbatim)))
    (format (cond ((not (string-match "`" value)) "`%s`")
		  ((or (string-prefix-p "`" value)
		       (string-suffix-p "`" value))
		   "`` %s ``")
		  (t "``%s``"))
	    value)))