ox-texinfo: Export example blocks as @example
* lisp/ox-texinfo.el (org-texinfo-example-block): Export as @example. Escape @, {, }, however, so as to get proper verbatim contents.
This commit is contained in:
parent
28bb7777b4
commit
cf505d2ebb
|
@ -360,11 +360,9 @@ 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 example blocks as ~@example~
|
||||||
*** Texinfo exports inline src blocks as ~@code{}~
|
*** 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
|
||||||
|
|
||||||
** Incompatible changes
|
** Incompatible changes
|
||||||
|
|
|
@ -778,8 +778,9 @@ holding contextual information."
|
||||||
"Transcode an EXAMPLE-BLOCK element from Org to Texinfo.
|
"Transcode an EXAMPLE-BLOCK element from Org to Texinfo.
|
||||||
CONTENTS is nil. INFO is a plist holding contextual
|
CONTENTS is nil. INFO is a plist holding contextual
|
||||||
information."
|
information."
|
||||||
(format "@verbatim\n%s@end verbatim"
|
(format "@example\n%s@end example"
|
||||||
(org-export-format-code-default example-block info)))
|
(org-texinfo--sanitize-content
|
||||||
|
(org-export-format-code-default example-block info))))
|
||||||
|
|
||||||
;;; Export Block
|
;;; Export Block
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue