Improve Org to text export
This commit is contained in:
parent
dbd0ef7ce0
commit
bc59dc48bd
@ -3742,6 +3742,8 @@ The following posts provide programming information:
|
|||||||
(defun org-yt-export (path desc backend _)
|
(defun org-yt-export (path desc backend _)
|
||||||
"Export an \"YouTube\" PATH link according to DESC and BACKEND."
|
"Export an \"YouTube\" PATH link according to DESC and BACKEND."
|
||||||
(pcase backend
|
(pcase backend
|
||||||
|
(`ascii
|
||||||
|
(format "[%s] <https://www.youtube.com/watch?v=%s>" desc path))
|
||||||
(`html
|
(`html
|
||||||
(format "<iframe
|
(format "<iframe
|
||||||
frameborder=\"0\" width=\"600\" height=\"450\"
|
frameborder=\"0\" width=\"600\" height=\"450\"
|
||||||
@ -3849,6 +3851,7 @@ define the [[https://orgmode.org/][Org mode]] =kbd= macro in listing
|
|||||||
(defun by-backend-kbd-org-macro (keys)
|
(defun by-backend-kbd-org-macro (keys)
|
||||||
"Help for an org-export backend dependent \"#+macro: kbd\"."
|
"Help for an org-export backend dependent \"#+macro: kbd\"."
|
||||||
(by-backend
|
(by-backend
|
||||||
|
(ascii (format "`kbd(%s)'" keys))
|
||||||
(html (format "@@html:<kbd>%s</kbd>@@" (htmlize-protect-string keys)))
|
(html (format "@@html:<kbd>%s</kbd>@@" (htmlize-protect-string keys)))
|
||||||
(latex (format "@@latex:\\colorbox{PowderBlue}{\\texttt{%s}}@@" keys)))))
|
(latex (format "@@latex:\\colorbox{PowderBlue}{\\texttt{%s}}@@" keys)))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user