From 4a435bf8ae0e9f009346d89ebc424d8884f33cea Mon Sep 17 00:00:00 2001 From: dvs1 Date: Wed, 22 Jan 2025 21:01:59 +1000 Subject: Replace cmark-gfm and lcmark with luamark. Plus YAR, yet another rewrite. --- SuckItFos | 9 --------- 1 file changed, 9 deletions(-) (limited to 'SuckItFos') diff --git a/SuckItFos b/SuckItFos index 11adaf9..1e6e48d 100755 --- a/SuckItFos +++ b/SuckItFos @@ -22,8 +22,6 @@ do mkdir -p combined/$base mkdir -p combined/${base}/`dirname ${file}` echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" -# pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md - # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM # Doesn't help with redownloads, coz natch a dynamic site isn't cached. But I can at least comment out the curl command during testing to save time. curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL @@ -40,13 +38,10 @@ do -e 's/class="foswikiTopic"/class="FoswikiTopic"/g' \ -e 's/class="foswiki[[:alpha:]]*"//g' \ -e "s/style='.*;'//g" -# -e "s/style='background-color: #.*;'//g" \ -# -e "s/style='font-size: .*;'//g" pandoc -f html -t commonmark_x --self-contained Foswiki//${base}/${file}.HTM >Foswiki/${base}/${file}.md cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL -# csplit -ks Foswiki/${base}/${file}.md '%::: {.foswikiTopic}%' '/::: {.foswikiContentFooter}/' csplit -ks Foswiki/${base}/${file}.md '%::: {.FoswikiTopic}%' '/::: {.patternInfo}/' if [ -f xx00 ]; then rm Foswiki/${base}/${file}.md @@ -63,10 +58,6 @@ do # -e 's/\{\.pattern.*//g' \ echo -e "****\n[Original page](${URL}/${base}/${file}) where maybe you can edit it." >> Foswiki/${base}/${file}.md - -# pandoc -t html -f commonmark_x --self-contained Foswiki/${base}/${file}.md > Foswiki/${base}/${file}.htm -# cmark-gfm -t html -e footnotes -e table -e strikethrough Foswiki/${base}/${file}.md > Foswiki/${base}/${file}.body -# ln -frs Foswiki/${base}/${file}.body combined/${base}/${file}.body ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md if [ -f xx01 ]; then -- cgit v1.1