blob: 2449d1fdd04dc098224d57058d2d0f95b0bc7e98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sed -f
/data-href/s/&/&/g
# xsltproc --html doesnt understand html5
s/section/div/g
s/header/h1/g
s/<nav/<div/g
s:</nav:</div:g
s/footer/div/g
s/article/div/g
# Fix incorrect < and > inside p tags, that is by allowing only
# known tag be surrounded by < and >.
ta
:a
s/<p>\(.*\)<\/p>/\1/
tfix
b
:fix
s/</\</g
s/>/\>/g
s/<span\([^;]*\)>/<span\1>/g
s/<\/span>/<\/span>/g
s/\<em\>/<em>/g
s/\<\/em\>/<\/em>/g
s:.*:<p>&</p>:
|