From ca9ce5723eb75e541998d0354ba263d86eb2a9fc Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Thu, 3 Aug 2023 16:35:42 -0600 Subject: [PATCH] Fix untitled sections not appearing --- edit-chapters.go | 2 +- edited/01.markdown | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/edit-chapters.go b/edit-chapters.go index 35d6170..4d2cd42 100644 --- a/edit-chapters.go +++ b/edit-chapters.go @@ -37,7 +37,7 @@ var replacers = mapSlice(compile, [][2]string{ {`(?ms)SECTION [IVX]+\.\n\n_([^_]+)\._`, `## $1`}, // Untitled sections - {`SECTION [IVX]+\.`, `

`}, + {`SECTION [IVX]+\.`, `\section{}`}, // Em dashes {"--", "—"}, diff --git a/edited/01.markdown b/edited/01.markdown index ee02e3a..ad210e6 100644 --- a/edited/01.markdown +++ b/edited/01.markdown @@ -1,7 +1,7 @@ # THE RIGHT OF JURIES TO JUDGE OF THE JUSTICE OF LAWS -

+\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. -

+\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