# skip scripts //,/<\/script>/ d # skip lines not intended for description //,/^$/ d # define ranges to be extracted and handled 1,/^Introduction/ d /^.*verview/,$ b overview : intro /^$/ d s/

// /^[ ]*.*verview/ b ovbegin b ovcont : ovbegin i\ i\ : ovcont # suppress HTML only lines s,^

$,, /^[ ]*<[^>]*>$/ d # headers s,^[ ]*

\([^<]*\).*,== \1 ==, t lines # sections s,[ ]*]*>\([^<]*\).*,=== \1 ===, t lines # items s,[ ]*
  • ,* , t lines # subitems s,[ ]*
    ,** , t lines # continuation lines s,[ ]*, , :lines # remove embedded HTML s,<[^>]*> *,,g s,^ *$,, # remove empty lines /^$/ d # prepend space to headings /^==[^=]/ i\ /^=/ i\ # remove leading space s,^ *,,