Zalgorithm

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 &lt;. 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;

alpha (lowercase)

The Greek lowercase letter alpha: α

&alpha;

Beta (uppercase)

The Greek uppercase letter Beta: Β

&Beta;

beta (lowercase)

The Greek lowercase letter beta: β

&beta;

epsilon (lowercase)

The Greek lowercase letter epsilon: ε

&epsilon;

Pi (lowercase)

The Greek lowercase letter pi: π

&pi;

Diacritics (accents)

See notes / Diacritics (accents) .

Acute accent

The letter “e” with an acute accent: é

&eacute;

The letter “E” with an acute accent: É

&Eacute;

Grave accent

The letter “a” with a grave accent: à.

&agrave;

Circumflex accent

The letter “a” with a circumflex accent: â.

&acirc;

Diaeresis, trema, or umlaut

The letter “o” with an umlaut: ö.

&ouml;

Tilde

The letter “n” with a tilde: ñ.

&ntilde;

Ring or bolle

The letter “a” with a bolle: å.

&aring;

Slash, solidus, or virgule

The letter “o” with a slash: ø.

&oslash;
Tags: