.gitignore - ignore emacs tilda files and locks
couchapp.org/ - rename html page dumps with a .html suffix

This just makes inspecting them easier.
couchapp.org/ - remove inserted wayback toolbar HTML

Using:

    perl -i -ne 'print unless /<!-- BEGIN/ .. /<!-- END/' *.html
couchapp.org/ - convert HTML back into markdown with html2text.py

html2text.py obtained from Aaron Swartz's github project with:

    wget https://raw.githubusercontent.com/aaronsw/html2text/master/html2text.py
    chmod +x html2text.py

And the conversion done thus:

    for i in *.html; do ./html2text.py $i > ${i%.html}.md; done
couchapp.org/ - remap the links to be relative to this directory

Using

    perl -i -pe 's{/web/\d+/http://couchapp.org/page/([\w.-]+)}{$1.md}g' *.md
couchapp.org/ - get missing attachments

The dump didn't seem to include them.

Used:

    perl -000  -ne 'print "$1/$2\n" while m{(/web/\d+/http://couchapp.org/pages)/?\s*([^)]*)\)}g' *.md | ( cd attachments ; xargs -I , wget http://web.archive.org, )

Some are 404s, some of those look like spam attachments anyway.
couchapp.org/ - remap links to attachments

Using (IIRC):

perl  -i -ne 'print unless m{\[(.*?)\]\(attachments/.*?\)}smg and !-e "attachments/$1"' *.md
couchapp.org/ - remap the links to be relative to this directory some more

Using

    perl -000 -i -pe 's{/web/.*?/http://couchapp.org/pages/?\s*[^/]+/([\w.-]+)}{attachments/$1}g' *.md
couchapp.org/ - some manual edits

Mostly unsplitting links, removing web.archice.org prefix paths, and
deleting spam links.
couchapp.org/ - more manual edits

Fixing split links, removed a few content-free or duplicate files