1
0
forked from GitHub/gf-core

Fix linking to chapters in gf-tutorial; Remove reference to Htmls.

This commit is contained in:
John J. Camilleri
2018-12-06 09:00:44 +01:00
parent 72a9eb0c8a
commit e9e2bd6b89
2 changed files with 31 additions and 26 deletions

View File

@@ -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