summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2018-12-06 09:00:44 +0100
committerJohn J. Camilleri <john@digitalgrammars.com>2018-12-06 09:00:44 +0100
commite9e2bd6b8985269520b34cb1f960baf904c06807 (patch)
treecb4f2dbf841109c7b42bc83a162b721755054203 /bin
parent72a9eb0c8a75b628f82197ed0a97d3865f9b1e08 (diff)
Fix linking to chapters in gf-tutorial; Remove reference to Htmls.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update_html2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/update_html b/bin/update_html
index 2d2ac4dc0..c71c2e8ef 100755
--- a/bin/update_html
+++ b/bin/update_html
@@ -23,7 +23,7 @@ function render_t2t_html {
--infile="$t2t"
# Replace <A NAME="toc3"></A> with <div id="toc3"></div> so that Pandoc retains it
- sed -i.bak "s/<A NAME=\"\(.*\)\"><\/A>/<div id=\"\1\"><\/div>/" "$tmp" && rm "$tmp.bak"
+ sed -i.bak "s/<(a|A) (name|NAME)=\"\(.*\)\"><\/(a|A)>/<div id=\"\1\"><\/div>/" "$tmp" && rm "$tmp.bak"
# Capture first 3 lines of t2t file: title, author, date
# Documentation here: https://txt2tags.org/userguide/headerarea