Typing HTML entities in markdown documents
For future reference.
What is an HTML entity? #
An HTML entity is a sequence of characters used in HTML to represent reserved characters like <
and &.
HTML entities in markdown documents #
Markdown supports inline HTML, so you can use HTML entity code with most markdown processors.
Hugo does a mixed job of processing HTML in markdown: (See the use of the <br> tag in
notes / A
simple document for testing
, also
notes / Forcing a line break
for details about the right way to get a <br> tag to render in the HTML.)
Hugo seems to handle HTML entities with no problem. For example < can be typed without escaping it
with using the named entity <. Testing it out: this is < that.
The W3C HTML entities reference #
The W3C HTML entities list seems to be a good reference: https://www.w3.org/TR/html401/sgml/entities.html
A searchable list of HTML entities #
Alpha (uppercase) #
The Greek capital letter alpha: Α
Α
alpha (lowercase) #
The Greek lowercase letter alpha: α
α
Beta (uppercase) #
The Greek uppercase letter Beta: Β
Β
beta (lowercase) #
The Greek lowercase letter beta: β
β
epsilon (lowercase) #
The Greek lowercase letter epsilon: ε
ε
Pi (lowercase) #
The Greek lowercase letter pi: π
π
Diacritics (accents) #
See notes / Diacritics (accents) .
Acute accent #
The letter “e” with an acute accent: é
é
The letter “E” with an acute accent: É
É
Grave accent #
The letter “a” with a grave accent: à.
à
Circumflex accent #
The letter “a” with a circumflex accent: â.
â
Diaeresis, trema, or umlaut #
The letter “o” with an umlaut: ö.
ö
Tilde #
The letter “n” with a tilde: ñ.
ñ
Ring or bolle #
The letter “a” with a bolle: å.
å
Slash, solidus, or virgule #
The letter “o” with a slash: ø.
ø