testing: various changes
All checks were successful
Export / Explore-GitHub-Actions (push) Successful in 42s
All checks were successful
Export / Explore-GitHub-Actions (push) Successful in 42s
This commit is contained in:
parent
afc44a56df
commit
a3a6f409dc
1 changed files with 0 additions and 10 deletions
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat data/$2 | ${perl} -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
|
||||
# perl -0pe 's/\[\^(.*?)\][^:]/\<label for\="\1" class\="margin-toggle"\>/gms'
|
||||
${multimarkdown} -t html -o $1 $1.tmp && cat $1 |
|
||||
${perl} -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
|
||||
${perl} -0pe 's/(\<blockquote\>.*?\<\/blockquote\>)/\<div class="epigraph"\>\n\1\n\<\/div\>/gms' |
|
||||
${perl} -0pe 's/(\<blockquote\>.*?)\n(–.*?)(\<\/blockquote\>)/\1\<footer\>\2\<\/footer\>\3/gms' > $1.new && mv $1.new $1
|
||||
|
||||
rm $1.tmp
|
Loading…
Reference in a new issue