diff options
-rwxr-xr-x | convert.sed | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/convert.sed b/convert.sed index 2449d1f..797abb6 100755 --- a/convert.sed +++ b/convert.sed @@ -1,14 +1,9 @@ #!/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 +s:\(</*\)\(section\|header\|nav\|footer\|article\):\1div:g + +/data-href/s/&/&/g # Fix incorrect < and > inside p tags, that is by allowing only # known tag be surrounded by < and >. |