1
0
mirror of https://github.com/cirosantilli/china-dictatorship.git synced 2025-09-01 18:52:41 +02:00

also remove .html from internal links that have fragment

This commit is contained in:
Ciro Santilli
2022-08-04 13:01:45 +00:00
parent b1d5e42fdc
commit c7efe681f2

2
push
View File

@@ -32,7 +32,7 @@ function multipage-fixup() (
find "$1" -name '*.html' ! -name 'index.html' | xargs perl -lapi -e '
s/<h[2-6] id="/<h2 id="/g;
s/href="README.html"/href="index-split"/g;
s/(href="(?![^"]+:\/\/)[^"]+).html"/\1"/g;
s/(href="(?![^"]+:\/\/)[^"]+).html(#[^"]*)?"/\1\2"/g;
'
# Not possible, it is identical to other lists actually...
# s/(<div class="paragraph nav-footer">)/<h2>Table of contents<\/h2>\1/g;