c2a663e52a21c44e9bb3254b784a606738996357
convert.sed
... | ... | @@ -3,15 +3,16 @@ |
3 | 3 | # Prepend a TOC |
4 | 4 | # Print an extra first heading |
5 | 5 | # Delete from 'On this page...' to the *first* first heading |
6 | +# BEWARE the non-breaking spaces! |
|
6 | 7 | # |
7 | 8 | /On this page.../{ |
8 | 9 | i [[_TOC_]]\n |
9 | 10 | }; |
10 | 11 | |
11 | -/# 1./p |
|
12 | +/# 1. /p |
|
12 | 13 | /On this page/,/# 1./d |
13 | 14 | /javascript:toggle/d |
14 | 15 | / #toc/d |
15 | - |
|
16 | +s/^\(#\+\)\s\+[0-9.]\+\s\+/\1 / |
|
16 | 17 | /?action=edit/d |
17 | 18 | s%http://markferry.net/pmwiki/pmwiki.php?n=%% |