Variable: kexport:html-replacement-alist

kexport:html-replacement-alist is a variable defined in kexport.el.

Value

(("<" . "&lt;")
 (">" . "&gt;")
 ("{[^}]+}" . "<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")
 ("&lt;\\s-*@\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-Z]+\\)[^&>]*&gt;" . "<a href=\"#k\\1\">\\&</a>")
 ("&lt;\\s-*@\\s-*\\(\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)\\)[^=&>]*&gt;" . "<a href=\"#k\\1\">\\&</a>")
 ("&lt;\\s-*\\([^   \n
,<>]+\\)\\s-*,\\s-*[0-9a-zA-Z][.0-9a-zA-Z]*=\\([.0-9a-zA-Z]+\\)[^=&>]*&gt;" . kexport:html-file-klink)
 ("&lt;\\s-*\\([^   \n
,<>]+\\)\\s-*,\\s-*\\([0-9a-zA-Z][.0-9a-zA-Z]*\\)[^=&>]*&gt;" . 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
   '("<" . "&lt;")
   '(">" . "&gt;")
   ;;
   ;; 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 "&lt;\\s-*@\\s-*" kexport:kcell-reference-regexp
		 "[^&>]*&gt;")
	 "<a href=\"#k\\1\">\\&</a>")
   (cons (format "&lt;\\s-*@\\s-*\\(%s\\)[^=&>]*&gt;"
		 kexport:kcell-partial-reference-regexp)
	 "<a href=\"#k\\1\">\\&</a>")
   (cons (format "&lt;\\s-*\\([^ \t\n\r,<>]+\\)\\s-*,\\s-*%s[^=&>]*&gt;"
		 kexport:kcell-reference-regexp)
	 'kexport:html-file-klink)
   (cons (format "&lt;\\s-*\\([^ \t\n\r,<>]+\\)\\s-*,\\s-*%s[^=&>]*&gt;"
		 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.")