LHTML+ lhtml-site

Headings

A line that starts with = is a heading. The number of = is its level.

Three levels
LHTML
= Main title
== A section
=== A subsection
Result
HTML produced
<h1>Main title</h1>

<h2>A section</h2>

<h3>A subsection</h3>
  • = gives <h1>, == gives <h2>, up to ====== for <h6>.
  • The = starts the line, and a space follows it. Otherwise the line stays text:
The space after the =
LHTML
= A heading
=Not a heading
The sum x = 2 is not a heading either.
Result
HTML produced
<h1>A heading</h1>

=Not a heading
The sum x = 2 is not a heading either.

A heading is one line: the text after it, on the next lines, is the content of its section.

A class or an id

Parentheses right after the = give the heading classes and an id, as in CSS: =(.highlight #intro) Introduction. Classes and ids shows what they are for.

In lhtml-site, the first heading of a page names it in the menu, and in slides the = heading is the title of the slide. lhtml-site also gives every heading an id made from its text: the themes list the == headings in "On this page", and any heading can be linked. An id you write is kept as written.

Next: Lists. All the rules: Syntax reference.

Built with lhtml-site, the docs theme. Part of ScholarTools.