ox-texinfo: Use @code instead of @verb for inline src blocks
* lisp/ox-texinfo.el (org-texinfo-inline-src-block): Use @code.
This commit is contained in:
parent
fdac3c0140
commit
0ff8ba5907
|
@ -354,6 +354,10 @@ is now obselete.
|
||||||
|
|
||||||
Now ~=...=~ markup uses ~@samp{}~ instead of ~@verb{}~. You can use
|
Now ~=...=~ markup uses ~@samp{}~ instead of ~@verb{}~. You can use
|
||||||
~@verb{}~ again by customizing the variable.
|
~@verb{}~ again by customizing the variable.
|
||||||
|
*** Texinfo exports inline src blocks as ~@code{}~
|
||||||
|
|
||||||
|
It is possible to write an inline src block filter to use ~@verb{}~
|
||||||
|
again.
|
||||||
|
|
||||||
* Version 9.0
|
* Version 9.0
|
||||||
|
|
||||||
|
|
|
@ -873,9 +873,9 @@ See `org-texinfo-format-headline-function' for details."
|
||||||
"Transcode an INLINE-SRC-BLOCK element from Org to Texinfo.
|
"Transcode an INLINE-SRC-BLOCK element from Org to Texinfo.
|
||||||
CONTENTS holds the contents of the item. INFO is a plist holding
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
||||||
contextual information."
|
contextual information."
|
||||||
(let* ((code (org-element-property :value inline-src-block))
|
(format "@code{%s}"
|
||||||
(separator (org-texinfo--find-verb-separator code)))
|
(org-texinfo--sanitize-content
|
||||||
(concat "@verb{" separator code separator "}")))
|
(org-element-property :value inline-src-block))))
|
||||||
|
|
||||||
;;;; Inlinetask
|
;;;; Inlinetask
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue