git.iko.soy/typeable/pandoc
on master help sign in
Add -asxhtml flag to tidy in html2markdown. This will
23841bdfiddlosopher
src/wrappers/html2markdown.in+2−2
@@ -145,11 +145,11 @@ else # assume UTF-8
145fi
145fi
146
146
147if [ -z "$argument" ]; then
147if [ -z "$argument" ]; then
148− tidy -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
148+ tidy -asxhtml -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
149else
149else
150 if [ -f "$argument" ]; then
150 if [ -f "$argument" ]; then
151 to_utf8 "$argument" |
151 to_utf8 "$argument" |
152− tidy -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
152+ tidy -asxhtml -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
153 else
153 else
154 err "File '$argument' not found."
154 err "File '$argument' not found."
155 exit 1
155 exit 1