Variable: kexport:html-replacement-alist
kexport:html-replacement-alist is a variable defined in kexport.el.
Value
(("<" . "<")
(">" . ">")
("{[^}]+}" . "<i>\\&</i>")
("<?\\(URL[:=]\\)?\\(\\([a-zA-Z][a-zA-Z]+\\)://?/?\\([^/:@ \n
\"`'|]+@\\)?\\([^/:@ \n
\"`'|]+\\)\\(\\)\\(:[0-9]+\\)?\\([/~]\\([^][ \n
\"`'|(){}<>]+[^][ \n
\"`'|(){}<>.,?#!*]\\)*\\)?\\)>?" . kexport:html-url)
("<?\\(URL:\\|[^/@]\\|\\`\\|\"\\)\\(\\(\\)\\(\\)\\(\\(www\\|s?ftp\\|telnet\\|news\\|nntp\\)\\.[^/:@ \n
\"`']+\\)\\(:[0-9]+\\)?\\([/~]\\([^][@ \n
\"`'(){}<>]+[^][@ \n
\"`'(){}<>.,?#!*]\\)*\\)?\\)>?" . kexport:html-url)
("\\([_a-zA-Z0-9][-_a-zA-Z0-9.!@+%]*@[-_a-zA-Z0-9.!@+%]+\\.[a-zA-Z0-9][-_a-zA-Z0-9]+\\)\\($\\|[^a-zA-Z0-9@%]\\)" . "<a href=\"mailto:\\1\"><i>\\1</i></a>\\2")
("<\\s-*@\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-Z]+\\)[^&>]*>" . "<a href=\"#k\\1\">\\&</a>")
("<\\s-*@\\s-*\\(\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)\\)[^=&>]*>" . "<a href=\"#k\\1\">\\&</a>")
("<\\s-*\\([^ \n
,<>]+\\)\\s-*,\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-Z]+\\)[^=&>]*>" . kexport:html-file-klink)
("<\\s-*\\([^ \n
,<>]+\\)\\s-*,\\s-*\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)[^=&>]*>" . kexport:html-file-klink))
Documentation
*List of (regexp . replacement-pattern) elements applied in order.
The elements are applied to the contents of each kcell from a
koutline exported to HTML format. Replacement pattern may be:
a string with references to regexp's grouping numbers, e.g. \1, or
a function of one argument (it is passed the string being replaced in)
which returns the modified string. The function may use expressions such
as (match-beginning 1) since the regexp has just been matched against
the target string when it is called.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kexport.el
(defvar kexport:html-replacement-alist
(list
;; make <> into literal markup
'("<" . "<")
'(">" . ">")
;;
;; italicize keybindings
'("{[^}]+}" . "<i>\\&</i>")
;;
;; make URLs into hyperlinks
(cons hpath:url-regexp 'kexport:html-url)
;; tightened version of hpath:url-regexp2
(cons
(concat
"<?\\(URL:\\|[^/@]\\|\\`\\|\"\\)\\(\\(\\)\\(\\)\\("
hpath:url-hostnames-regexp
"\\.[^/:@ \t\n\r\"`']+\\)\\(:[0-9]+\\)?\\([/~]\\([^\]\[@ \t\n\r\"`'(){}<>]+[^\]\[@ \t\n\r\"`'(){}<>.,?#!*]\\)*\\)?\\)>?")
'kexport:html-url)
;;
;; make mail addresses into hyperbuttons
(cons hypb:mail-address-regexp "<a href=\"mailto:\\1\"><i>\\1</i></a>\\2")
;;
;; make klinks into hyperlinks
(cons (concat "<\\s-*@\\s-*" kexport:kcell-reference-regexp
"[^&>]*>")
"<a href=\"#k\\1\">\\&</a>")
(cons (format "<\\s-*@\\s-*\\(%s\\)[^=&>]*>"
kexport:kcell-partial-reference-regexp)
"<a href=\"#k\\1\">\\&</a>")
(cons (format "<\\s-*\\([^ \t\n\r,<>]+\\)\\s-*,\\s-*%s[^=&>]*>"
kexport:kcell-reference-regexp)
'kexport:html-file-klink)
(cons (format "<\\s-*\\([^ \t\n\r,<>]+\\)\\s-*,\\s-*%s[^=&>]*>"
kexport:kcell-partial-reference-regexp)
'kexport:html-file-klink))
"*List of (regexp . replacement-pattern) elements applied in order.
The elements are applied to the contents of each kcell from a
koutline exported to HTML format. Replacement pattern may be:
a string with references to regexp's grouping numbers, e.g. \\1, or
a function of one argument (it is passed the string being replaced in)
which returns the modified string. The function may use expressions such
as (match-beginning 1) since the regexp has just been matched against
the target string when it is called.")