Improve Org to text export
This commit is contained in:
parent
dbd0ef7ce0
commit
bc59dc48bd
13
README.org
13
README.org
@ -3742,15 +3742,17 @@ 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
|
||||||
(`html
|
(`ascii
|
||||||
(format "<iframe
|
(format "[%s] <https://www.youtube.com/watch?v=%s>" desc path))
|
||||||
|
(`html
|
||||||
|
(format "<iframe
|
||||||
frameborder=\"0\" width=\"600\" height=\"450\"
|
frameborder=\"0\" width=\"600\" height=\"450\"
|
||||||
src=\"https://www.youtube.com/embed/%s\"
|
src=\"https://www.youtube.com/embed/%s\"
|
||||||
title=\"%s\"
|
title=\"%s\"
|
||||||
allowfullscreen></iframe>" path desc))
|
allowfullscreen></iframe>" path desc))
|
||||||
(`latex
|
(`latex
|
||||||
(format "\\href{https://www.youtube.com/watch?v=%s}{%s}" path desc))
|
(format "\\href{https://www.youtube.com/watch?v=%s}{%s}" path desc))
|
||||||
(_ path)))
|
(_ path)))
|
||||||
|
|
||||||
(with-eval-after-load 'ol
|
(with-eval-after-load 'ol
|
||||||
(org-link-set-parameters
|
(org-link-set-parameters
|
||||||
@ -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