Fix html entities: support \<entity>{} and prevent partial replacements

This commit is contained in:
Niklas Fasching 2022-04-28 18:09:42 +02:00
parent 7344ea2e86
commit 8e11cc3db0
4 changed files with 447 additions and 419 deletions

View file

@ -1,16 +1,28 @@
package org package org
import "strings" import (
"sort"
"strings"
)
var htmlEntityReplacer *strings.Replacer var htmlEntityReplacer *strings.Replacer
func init() { func init() {
htmlEntities = append(htmlEntities, htmlEntities = append(htmlEntities,
"---", "—", []string{"---", "—"},
"--", "", []string{"--", ""},
"...", "…", []string{"...", "…"},
) )
htmlEntityReplacer = strings.NewReplacer(htmlEntities...) // replace longer entities first to prevent partial replacements (e.g. \angle as \ang + le)
sort.Slice(htmlEntities, func(i, j int) bool {
return len(htmlEntities[i][0]) > len(htmlEntities[j][0])
})
xs := make([]string, len(htmlEntities)*2)
for _, kv := range htmlEntities {
// replace both \<entity> and \<entity>{}
xs = append(xs, kv[0]+"{}", kv[1], kv[0], kv[1])
}
htmlEntityReplacer = strings.NewReplacer(xs...)
} }
/* /*
@ -18,420 +30,423 @@ Generated & copied over using the following elisp
(Setting up go generate seems like a waste for now - I call YAGNI on that one) (Setting up go generate seems like a waste for now - I call YAGNI on that one)
(insert (mapconcat (insert (mapconcat
(lambda (entity) (concat "`\\" (car entity) "`, `" (nth 6 entity) "`")) ; entity -> utf8 (lambda (entity) (concat "{`\\" (car entity) "`, `" (nth 6 entity) "`}")) ; entity -> utf8
(remove-if-not 'listp org-entities) (cl-remove-if-not 'listp org-entities)
",\n")) ",\n"))
*/ */
var htmlEntities = []string{
`\Agrave`, `À`, var htmlEntities = [][]string{
`\agrave`, `à`, {`\Agrave`, `À`},
`\Aacute`, `Á`, {`\agrave`, `à`},
`\aacute`, `á`, {`\Aacute`, `Á`},
`\Acirc`, `Â`, {`\aacute`, `á`},
`\acirc`, `â`, {`\Acirc`, `Â`},
`\Amacr`, `Ã`, {`\acirc`, `â`},
`\amacr`, `ã`, {`\Amacr`, `Ã`},
`\Atilde`, `Ã`, {`\amacr`, `ã`},
`\atilde`, `ã`, {`\Atilde`, `Ã`},
`\Auml`, `Ä`, {`\atilde`, `ã`},
`\auml`, `ä`, {`\Auml`, `Ä`},
`\Aring`, `Å`, {`\auml`, `ä`},
`\AA`, `Å`, {`\Aring`, `Å`},
`\aring`, `å`, {`\AA`, `Å`},
`\AElig`, `Æ`, {`\aring`, `å`},
`\aelig`, `æ`, {`\AElig`, `Æ`},
`\Ccedil`, `Ç`, {`\aelig`, `æ`},
`\ccedil`, `ç`, {`\Ccedil`, `Ç`},
`\Egrave`, `È`, {`\ccedil`, `ç`},
`\egrave`, `è`, {`\Egrave`, `È`},
`\Eacute`, `É`, {`\egrave`, `è`},
`\eacute`, `é`, {`\Eacute`, `É`},
`\Ecirc`, `Ê`, {`\eacute`, `é`},
`\ecirc`, `ê`, {`\Ecirc`, `Ê`},
`\Euml`, `Ë`, {`\ecirc`, `ê`},
`\euml`, `ë`, {`\Euml`, `Ë`},
`\Igrave`, `Ì`, {`\euml`, `ë`},
`\igrave`, `ì`, {`\Igrave`, `Ì`},
`\Iacute`, `Í`, {`\igrave`, `ì`},
`\iacute`, `í`, {`\Iacute`, `Í`},
`\Icirc`, `Î`, {`\iacute`, `í`},
`\icirc`, `î`, {`\Idot`, `İ`},
`\Iuml`, `Ï`, {`\inodot`, `ı`},
`\iuml`, `ï`, {`\Icirc`, `Î`},
`\Ntilde`, `Ñ`, {`\icirc`, `î`},
`\ntilde`, `ñ`, {`\Iuml`, `Ï`},
`\Ograve`, `Ò`, {`\iuml`, `ï`},
`\ograve`, `ò`, {`\Ntilde`, `Ñ`},
`\Oacute`, `Ó`, {`\ntilde`, `ñ`},
`\oacute`, `ó`, {`\Ograve`, `Ò`},
`\Ocirc`, `Ô`, {`\ograve`, `ò`},
`\ocirc`, `ô`, {`\Oacute`, `Ó`},
`\Otilde`, `Õ`, {`\oacute`, `ó`},
`\otilde`, `õ`, {`\Ocirc`, `Ô`},
`\Ouml`, `Ö`, {`\ocirc`, `ô`},
`\ouml`, `ö`, {`\Otilde`, `Õ`},
`\Oslash`, `Ø`, {`\otilde`, `õ`},
`\oslash`, `ø`, {`\Ouml`, `Ö`},
`\OElig`, `Œ`, {`\ouml`, `ö`},
`\oelig`, `œ`, {`\Oslash`, `Ø`},
`\Scaron`, `Š`, {`\oslash`, `ø`},
`\scaron`, `š`, {`\OElig`, `Œ`},
`\szlig`, `ß`, {`\oelig`, `œ`},
`\Ugrave`, `Ù`, {`\Scaron`, `Š`},
`\ugrave`, `ù`, {`\scaron`, `š`},
`\Uacute`, `Ú`, {`\szlig`, `ß`},
`\uacute`, `ú`, {`\Ugrave`, `Ù`},
`\Ucirc`, `Û`, {`\ugrave`, `ù`},
`\ucirc`, `û`, {`\Uacute`, `Ú`},
`\Uuml`, `Ü`, {`\uacute`, `ú`},
`\uuml`, `ü`, {`\Ucirc`, `Û`},
`\Yacute`, `Ý`, {`\ucirc`, `û`},
`\yacute`, `ý`, {`\Uuml`, `Ü`},
`\Yuml`, `Ÿ`, {`\uuml`, `ü`},
`\yuml`, `ÿ`, {`\Yacute`, `Ý`},
`\fnof`, `ƒ`, {`\yacute`, `ý`},
`\real`, ``, {`\Yuml`, `Ÿ`},
`\image`, ``, {`\yuml`, `ÿ`},
`\weierp`, ``, {`\fnof`, `ƒ`},
`\ell`, ``, {`\real`, ``},
`\imath`, `ı`, {`\image`, ``},
`\jmath`, `ȷ`, {`\weierp`, ``},
`\Alpha`, `Α`, {`\ell`, ``},
`\alpha`, `α`, {`\imath`, `ı`},
`\Beta`, `Β`, {`\jmath`, `ȷ`},
`\beta`, `β`, {`\Alpha`, `Α`},
`\Gamma`, `Γ`, {`\alpha`, `α`},
`\gamma`, `γ`, {`\Beta`, `Β`},
`\Delta`, `Δ`, {`\beta`, `β`},
`\delta`, `δ`, {`\Gamma`, `Γ`},
`\Epsilon`, `Ε`, {`\gamma`, `γ`},
`\epsilon`, `ε`, {`\Delta`, `Δ`},
`\varepsilon`, `ε`, {`\delta`, `δ`},
`\Zeta`, `Ζ`, {`\Epsilon`, `Ε`},
`\zeta`, `ζ`, {`\epsilon`, `ε`},
`\Eta`, `Η`, {`\varepsilon`, `ε`},
`\eta`, `η`, {`\Zeta`, `Ζ`},
`\Theta`, `Θ`, {`\zeta`, `ζ`},
`\theta`, `θ`, {`\Eta`, `Η`},
`\thetasym`, `ϑ`, {`\eta`, `η`},
`\vartheta`, `ϑ`, {`\Theta`, `Θ`},
`\Iota`, `Ι`, {`\theta`, `θ`},
`\iota`, `ι`, {`\thetasym`, `ϑ`},
`\Kappa`, `Κ`, {`\vartheta`, `ϑ`},
`\kappa`, `κ`, {`\Iota`, `Ι`},
`\Lambda`, `Λ`, {`\iota`, `ι`},
`\lambda`, `λ`, {`\Kappa`, `Κ`},
`\Mu`, `Μ`, {`\kappa`, `κ`},
`\mu`, `μ`, {`\Lambda`, `Λ`},
`\nu`, `ν`, {`\lambda`, `λ`},
`\Nu`, `Ν`, {`\Mu`, `Μ`},
`\Xi`, `Ξ`, {`\mu`, `μ`},
`\xi`, `ξ`, {`\nu`, `ν`},
`\Omicron`, `Ο`, {`\Nu`, `Ν`},
`\omicron`, `ο`, {`\Xi`, `Ξ`},
`\Pi`, `Π`, {`\xi`, `ξ`},
`\pi`, `π`, {`\Omicron`, `Ο`},
`\Rho`, `Ρ`, {`\omicron`, `ο`},
`\rho`, `ρ`, {`\Pi`, `Π`},
`\Sigma`, `Σ`, {`\pi`, `π`},
`\sigma`, `σ`, {`\Rho`, `Ρ`},
`\sigmaf`, `ς`, {`\rho`, `ρ`},
`\varsigma`, `ς`, {`\Sigma`, `Σ`},
`\Tau`, `Τ`, {`\sigma`, `σ`},
`\Upsilon`, `Υ`, {`\sigmaf`, `ς`},
`\upsih`, `ϒ`, {`\varsigma`, `ς`},
`\upsilon`, `υ`, {`\Tau`, `Τ`},
`\Phi`, `Φ`, {`\Upsilon`, `Υ`},
`\phi`, `ɸ`, {`\upsih`, `ϒ`},
`\varphi`, `φ`, {`\upsilon`, `υ`},
`\Chi`, `Χ`, {`\Phi`, `Φ`},
`\chi`, `χ`, {`\phi`, `ɸ`},
`\acutex`, `𝑥́`, {`\varphi`, `φ`},
`\Psi`, `Ψ`, {`\Chi`, `Χ`},
`\psi`, `ψ`, {`\chi`, `χ`},
`\tau`, `τ`, {`\acutex`, `𝑥́`},
`\Omega`, `Ω`, {`\Psi`, `Ψ`},
`\omega`, `ω`, {`\psi`, `ψ`},
`\piv`, `ϖ`, {`\tau`, `τ`},
`\varpi`, `ϖ`, {`\Omega`, `Ω`},
`\partial`, ``, {`\omega`, `ω`},
`\alefsym`, ``, {`\piv`, `ϖ`},
`\aleph`, ``, {`\varpi`, `ϖ`},
`\gimel`, ``, {`\partial`, ``},
`\beth`, `ב`, {`\alefsym`, ``},
`\dalet`, `ד`, {`\aleph`, ``},
`\ETH`, `Ð`, {`\gimel`, ``},
`\eth`, `ð`, {`\beth`, `ב`},
`\THORN`, `Þ`, {`\dalet`, `ד`},
`\thorn`, `þ`, {`\ETH`, `Ð`},
`\dots`, ``, {`\eth`, `ð`},
`\cdots`, ``, {`\THORN`, `Þ`},
`\hellip`, ``, {`\thorn`, `þ`},
`\middot`, `·`, {`\dots`, ``},
`\iexcl`, `¡`, {`\cdots`, ``},
`\iquest`, `¿`, {`\hellip`, ``},
`\shy`, ``, {`\middot`, `·`},
`\ndash`, ``, {`\iexcl`, `¡`},
`\mdash`, ``, {`\iquest`, `¿`},
`\quot`, `"`, {`\shy`, ``},
`\acute`, `´`, {`\ndash`, ``},
`\ldquo`, ``, {`\mdash`, ``},
`\rdquo`, ``, {`\quot`, `"`},
`\bdquo`, ``, {`\acute`, `´`},
`\lsquo`, ``, {`\ldquo`, ``},
`\rsquo`, ``, {`\rdquo`, ``},
`\sbquo`, ``, {`\bdquo`, ``},
`\laquo`, `«`, {`\lsquo`, ``},
`\raquo`, `»`, {`\rsquo`, ``},
`\lsaquo`, ``, {`\sbquo`, ``},
`\rsaquo`, ``, {`\laquo`, `«`},
`\circ`, ``, {`\raquo`, `»`},
`\vert`, `|`, {`\lsaquo`, ``},
`\vbar`, `|`, {`\rsaquo`, ``},
`\brvbar`, `¦`, {`\circ`, ``},
`\S`, `§`, {`\vert`, `|`},
`\sect`, `§`, {`\vbar`, `|`},
`\amp`, `&`, {`\brvbar`, `¦`},
`\lt`, `<`, {`\S`, `§`},
`\gt`, `>`, {`\sect`, `§`},
`\tilde`, `~`, {`\amp`, `&`},
`\slash`, `/`, {`\lt`, `<`},
`\plus`, `+`, {`\gt`, `>`},
`\under`, `_`, {`\tilde`, `~`},
`\equal`, `=`, {`\slash`, `/`},
`\asciicirc`, `^`, {`\plus`, `+`},
`\dagger`, ``, {`\under`, `_`},
`\dag`, ``, {`\equal`, `=`},
`\Dagger`, ``, {`\asciicirc`, `^`},
`\ddag`, ``, {`\dagger`, ``},
`\nbsp`, ` `, {`\dag`, ``},
`\ensp`, ``, {`\Dagger`, ``},
`\emsp`, ``, {`\ddag`, ``},
`\thinsp`, ``, {`\nbsp`, ` `},
`\curren`, `¤`, {`\ensp`, ``},
`\cent`, `¢`, {`\emsp`, ``},
`\pound`, `£`, {`\thinsp`, ``},
`\yen`, `¥`, {`\curren`, `¤`},
`\euro`, ``, {`\cent`, `¢`},
`\EUR`, ``, {`\pound`, `£`},
`\dollar`, `$`, {`\yen`, `¥`},
`\USD`, `$`, {`\euro`, ``},
`\copy`, `©`, {`\EUR`, ``},
`\reg`, `®`, {`\dollar`, `$`},
`\trade`, ``, {`\USD`, `$`},
`\minus`, ``, {`\copy`, `©`},
`\pm`, `±`, {`\reg`, `®`},
`\plusmn`, `±`, {`\trade`, ``},
`\times`, `×`, {`\minus`, ``},
`\frasl`, ``, {`\pm`, `±`},
`\colon`, `:`, {`\plusmn`, `±`},
`\div`, `÷`, {`\times`, `×`},
`\frac12`, `½`, {`\frasl`, ``},
`\frac14`, `¼`, {`\colon`, `:`},
`\frac34`, `¾`, {`\div`, `÷`},
`\permil`, ``, {`\frac12`, `½`},
`\sup1`, `¹`, {`\frac14`, `¼`},
`\sup2`, `²`, {`\frac34`, `¾`},
`\sup3`, `³`, {`\permil`, ``},
`\radic`, ``, {`\sup1`, `¹`},
`\sum`, ``, {`\sup2`, `²`},
`\prod`, ``, {`\sup3`, `³`},
`\micro`, `µ`, {`\radic`, ``},
`\macr`, `¯`, {`\sum`, ``},
`\deg`, `°`, {`\prod`, ``},
`\prime`, ``, {`\micro`, `µ`},
`\Prime`, ``, {`\macr`, `¯`},
`\infin`, ``, {`\deg`, `°`},
`\infty`, ``, {`\prime`, ``},
`\prop`, ``, {`\Prime`, ``},
`\propto`, ``, {`\infin`, ``},
`\not`, `¬`, {`\infty`, ``},
`\neg`, `¬`, {`\prop`, ``},
`\land`, ``, {`\propto`, ``},
`\wedge`, ``, {`\not`, `¬`},
`\lor`, ``, {`\neg`, `¬`},
`\vee`, ``, {`\land`, ``},
`\cap`, ``, {`\wedge`, ``},
`\cup`, ``, {`\lor`, ``},
`\smile`, ``, {`\vee`, ``},
`\frown`, ``, {`\cap`, ``},
`\int`, ``, {`\cup`, ``},
`\therefore`, ``, {`\smile`, ``},
`\there4`, ``, {`\frown`, ``},
`\because`, ``, {`\int`, ``},
`\sim`, ``, {`\therefore`, ``},
`\cong`, ``, {`\there4`, ``},
`\simeq`, ``, {`\because`, ``},
`\asymp`, ``, {`\sim`, ``},
`\approx`, ``, {`\cong`, ``},
`\ne`, ``, {`\simeq`, ``},
`\neq`, ``, {`\asymp`, ``},
`\equiv`, ``, {`\approx`, ``},
`\triangleq`, ``, {`\ne`, ``},
`\le`, ``, {`\neq`, ``},
`\leq`, ``, {`\equiv`, ``},
`\ge`, ``, {`\triangleq`, ``},
`\geq`, ``, {`\le`, ``},
`\lessgtr`, ``, {`\leq`, ``},
`\lesseqgtr`, ``, {`\ge`, ``},
`\ll`, ``, {`\geq`, ``},
`\Ll`, ``, {`\lessgtr`, ``},
`\lll`, ``, {`\lesseqgtr`, ``},
`\gg`, ``, {`\ll`, ``},
`\Gg`, ``, {`\Ll`, ``},
`\ggg`, ``, {`\lll`, ``},
`\prec`, ``, {`\gg`, ``},
`\preceq`, ``, {`\Gg`, ``},
`\preccurlyeq`, ``, {`\ggg`, ``},
`\succ`, ``, {`\prec`, ``},
`\succeq`, ``, {`\preceq`, ``},
`\succcurlyeq`, ``, {`\preccurlyeq`, ``},
`\sub`, ``, {`\succ`, ``},
`\subset`, ``, {`\succeq`, ``},
`\sup`, ``, {`\succcurlyeq`, ``},
`\supset`, ``, {`\sub`, ``},
`\nsub`, ``, {`\subset`, ``},
`\sube`, ``, {`\sup`, ``},
`\nsup`, ``, {`\supset`, ``},
`\supe`, ``, {`\nsub`, ``},
`\setminus`, ``, {`\sube`, ``},
`\forall`, ``, {`\nsup`, ``},
`\exist`, ``, {`\supe`, ``},
`\exists`, ``, {`\setminus`, ``},
`\nexist`, ``, {`\forall`, ``},
`\nexists`, ``, {`\exist`, ``},
`\empty`, ``, {`\exists`, ``},
`\emptyset`, ``, {`\nexist`, ``},
`\isin`, ``, {`\nexists`, ``},
`\in`, ``, {`\empty`, ``},
`\notin`, ``, {`\emptyset`, ``},
`\ni`, ``, {`\isin`, ``},
`\nabla`, ``, {`\in`, ``},
`\ang`, ``, {`\notin`, ``},
`\angle`, ``, {`\ni`, ``},
`\perp`, ``, {`\nabla`, ``},
`\parallel`, ``, {`\ang`, ``},
`\sdot`, ``, {`\angle`, ``},
`\cdot`, ``, {`\perp`, ``},
`\lceil`, ``, {`\parallel`, ``},
`\rceil`, ``, {`\sdot`, ``},
`\lfloor`, ``, {`\cdot`, ``},
`\rfloor`, ``, {`\lceil`, ``},
`\lang`, ``, {`\rceil`, ``},
`\rang`, ``, {`\lfloor`, ``},
`\langle`, ``, {`\rfloor`, ``},
`\rangle`, ``, {`\lang`, ``},
`\hbar`, ``, {`\rang`, ``},
`\mho`, ``, {`\langle`, ``},
`\larr`, ``, {`\rangle`, ``},
`\leftarrow`, ``, {`\hbar`, ``},
`\gets`, ``, {`\mho`, ``},
`\lArr`, ``, {`\larr`, ``},
`\Leftarrow`, ``, {`\leftarrow`, ``},
`\uarr`, ``, {`\gets`, ``},
`\uparrow`, ``, {`\lArr`, ``},
`\uArr`, ``, {`\Leftarrow`, ``},
`\Uparrow`, ``, {`\uarr`, ``},
`\rarr`, ``, {`\uparrow`, ``},
`\to`, ``, {`\uArr`, ``},
`\rightarrow`, ``, {`\Uparrow`, ``},
`\rArr`, ``, {`\rarr`, ``},
`\Rightarrow`, ``, {`\to`, ``},
`\darr`, ``, {`\rightarrow`, ``},
`\downarrow`, ``, {`\rArr`, ``},
`\dArr`, ``, {`\Rightarrow`, ``},
`\Downarrow`, ``, {`\darr`, ``},
`\harr`, ``, {`\downarrow`, ``},
`\leftrightarrow`, ``, {`\dArr`, ``},
`\hArr`, ``, {`\Downarrow`, ``},
`\Leftrightarrow`, ``, {`\harr`, ``},
`\crarr`, ``, {`\leftrightarrow`, ``},
`\hookleftarrow`, ``, {`\hArr`, ``},
`\arccos`, `arccos`, {`\Leftrightarrow`, ``},
`\arcsin`, `arcsin`, {`\crarr`, ``},
`\arctan`, `arctan`, {`\hookleftarrow`, ``},
`\arg`, `arg`, {`\arccos`, `arccos`},
`\cos`, `cos`, {`\arcsin`, `arcsin`},
`\cosh`, `cosh`, {`\arctan`, `arctan`},
`\cot`, `cot`, {`\arg`, `arg`},
`\coth`, `coth`, {`\cos`, `cos`},
`\csc`, `csc`, {`\cosh`, `cosh`},
`\deg`, `deg`, {`\cot`, `cot`},
`\det`, `det`, {`\coth`, `coth`},
`\dim`, `dim`, {`\csc`, `csc`},
`\exp`, `exp`, {`\deg`, `deg`},
`\gcd`, `gcd`, {`\det`, `det`},
`\hom`, `hom`, {`\dim`, `dim`},
`\inf`, `inf`, {`\exp`, `exp`},
`\ker`, `ker`, {`\gcd`, `gcd`},
`\lg`, `lg`, {`\hom`, `hom`},
`\lim`, `lim`, {`\inf`, `inf`},
`\liminf`, `liminf`, {`\ker`, `ker`},
`\limsup`, `limsup`, {`\lg`, `lg`},
`\ln`, `ln`, {`\lim`, `lim`},
`\log`, `log`, {`\liminf`, `liminf`},
`\max`, `max`, {`\limsup`, `limsup`},
`\min`, `min`, {`\ln`, `ln`},
`\Pr`, `Pr`, {`\log`, `log`},
`\sec`, `sec`, {`\max`, `max`},
`\sin`, `sin`, {`\min`, `min`},
`\sinh`, `sinh`, {`\Pr`, `Pr`},
`\sup`, `sup`, {`\sec`, `sec`},
`\tan`, `tan`, {`\sin`, `sin`},
`\tanh`, `tanh`, {`\sinh`, `sinh`},
`\bull`, ``, {`\sup`, `sup`},
`\bullet`, ``, {`\tan`, `tan`},
`\star`, ``, {`\tanh`, `tanh`},
`\lowast`, ``, {`\bull`, ``},
`\ast`, `*`, {`\bullet`, ``},
`\odot`, `ʘ`, {`\star`, ``},
`\oplus`, ``, {`\lowast`, ``},
`\otimes`, ``, {`\ast`, `*`},
`\check`, ``, {`\odot`, `ʘ`},
`\checkmark`, ``, {`\oplus`, ``},
`\para`, ``, {`\otimes`, ``},
`\ordf`, `ª`, {`\check`, ``},
`\ordm`, `º`, {`\checkmark`, ``},
`\cedil`, `¸`, {`\para`, ``},
`\oline`, ``, {`\ordf`, `ª`},
`\uml`, `¨`, {`\ordm`, `º`},
`\zwnj`, ``, {`\cedil`, `¸`},
`\zwj`, ``, {`\oline`, ``},
`\lrm`, ``, {`\uml`, `¨`},
`\rlm`, ``, {`\zwnj`, ``},
`\smiley`, ``, {`\zwj`, ``},
`\blacksmile`, ``, {`\lrm`, ``},
`\sad`, ``, {`\rlm`, ``},
`\frowny`, ``, {`\smiley`, ``},
`\clubs`, ``, {`\blacksmile`, ``},
`\clubsuit`, ``, {`\sad`, ``},
`\spades`, ``, {`\frowny`, ``},
`\spadesuit`, ``, {`\clubs`, ``},
`\hearts`, ``, {`\clubsuit`, ``},
`\heartsuit`, ``, {`\spades`, ``},
`\diams`, ``, {`\spadesuit`, ``},
`\diamondsuit`, ``, {`\hearts`, ``},
`\diamond`, ``, {`\heartsuit`, ``},
`\Diamond`, ``, {`\diams`, ``},
`\loz`, ``, {`\diamondsuit`, ``},
`\_ `, ``, {`\diamond`, ``},
`\_ `, ``, {`\Diamond`, ``},
`\_ `, ``, {`\loz`, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
`\_ `, ``, {`\_ `, ``},
{`\_ `, ``},
{`\_ `, ``},
{`\_ `, ``},
} }

View file

@ -69,4 +69,11 @@ not emphasized/</li>
<p><code class="verbatim">#+MACROs</code>: <p><h1>yolo</h1></p> <p><code class="verbatim">#+MACROs</code>: <p><h1>yolo</h1></p>
</p> </p>
</li> </li>
<li>
<p>org entities</p>
<ul>
<li><code class="verbatim">\pi</code> &amp; <code class="verbatim">\pi{}</code> =&gt; π &amp; π</li>
<li><code class="verbatim">\angle{}</code> &amp; <code class="verbatim">\angle</code> &amp; <code class="verbatim">\ang</code> <code class="verbatim">&gt;</code> ∠ ∠ ∠</li>
</ul>
</li>
</ul> </ul>

View file

@ -51,3 +51,6 @@
- [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]]) - [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]])
- =#+MACROs=: {{{headline(yolo)}}} - =#+MACROs=: {{{headline(yolo)}}}
#+MACRO: headline @@html:<h1>$1</h1>@@ #+MACRO: headline @@html:<h1>$1</h1>@@
- org entities
- =\pi= & =\pi{}= => \pi & \pi{}
- =\angle{}= & =\angle= & =\ang= =>= \angle{} \angle \ang

View file

@ -51,3 +51,6 @@
- [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]]) - [[example_interpolate_h:tag value with specical chars % : &]] (w/o tag [[example_interpolate_h]])
- =#+MACROs=: {{{headline(yolo)}}} - =#+MACROs=: {{{headline(yolo)}}}
#+MACRO: headline @@html:<h1>$1</h1>@@ #+MACRO: headline @@html:<h1>$1</h1>@@
- org entities
- =\pi= & =\pi{}= => \pi & \pi{}
- =\angle{}= & =\angle= & =\ang= =>= \angle{} \angle \ang