Fix untitled sections not appearing

This commit is contained in:
Brandon Dyck 2023-08-03 16:35:42 -06:00
parent 0258f462ff
commit ca9ce5723e
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ var replacers = mapSlice(compile, [][2]string{
{`(?ms)SECTION [IVX]+\.\n\n_([^_]+)\._`, `## $1`},
// Untitled sections
{`SECTION [IVX]+\.`, `<h2></h2>`},
{`SECTION [IVX]+\.`, `\section{}`},
// Em dashes
{"--", "—"},

View File

@ -1,7 +1,7 @@
# THE RIGHT OF JURIES TO JUDGE OF THE JUSTICE OF LAWS
<h2></h2>
\section{}
For more than six hundred years—that is, since Magna Carta, in
1215—there has been no clearer principle of English or American
@ -191,7 +191,7 @@ substantially the whole people (through a jury) consent that it may
exercise.
<h2></h2>
\section{}
The force and justice of the preceding argument cannot be evaded by
saying that the government is chosen by the people; that, in theory, it