%g/<tr\_.\{-}\/tr>/j30
:%s/ <tr/\r \<tr/g
:%s/ <block/\r\<block/g
:%s/ <[/]*tbody/\r\<\/tbody/g
:%s/ <[/]*thead/\r\<\/thead/g
:%g/<thead\_.\{-}\/thead>/j3
:%s//<[/]*tr.*{-}>//g
:%s/<tr .\{-}>//g
:%s/<\/tr.\{-}>//g
:%s/<\/td> <td .\{-}>/ | /g
:%s/<t[dh] .\{-}>/| /g
:%s/<\/t[dh].\{-}>/ |/g
":%s/<\/th> <th .\{-}>/ ^ /g
:%s/<\/th.\{-}>/ ^/g
:%s/<th .\{-}>/^ /g
:%s/<[/]*thead>//g
:%s/<[/]*tbody>//g
:%s/<[/]*table>//g
:%s/<[/]*block>//g
:%s/^==/\r\r\==/g
:%s/\(.\{-}\) == /\1\r\r\== /
:%g/<blockquote.\{-}<\/blockquote/>>
:%s/<[/]*blockquote>//g
:%g/\^$/j
:%s/^[ ]*==/==/
:%s/^[ ]*|/|/
:%s/ | | / | /g
:%s/\</</g
:%s/\>/>/g
:%s/\^[ \t]*\^/\^\^/g
:%s/^==== /====== /g
:%s/^=== /===== /g
:%s/^== /==== /g
:%s/ ====$/ ======/g
:%s/ ===$/ =====/g
:%s/ ==$/ ====/g
:%s/\[/\[\[/g
:%s/\]/\]\]/g
:%s/\[\[\(.\{-}\)\ \(.\{-}\)\]\]/\[\[\1|\2\]\]/g