Add -asxhtml flag to tidy in html2markdown. This will
perhaps help the parser. git-svn-id: https://pandoc.googlecode.com/svn/trunk@590 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
1 parent
cf081435ff
commit
23841bdf77
1 file changed
+2
-2
@@ -145,11 +145,11 @@ else # assume UTF-8
|
||||
fi
|
||||
|
||||
if [ -z "$argument" ]; then
|
||||
tidy -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
|
||||
tidy -asxhtml -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
|
||||
else
|
||||
if [ -f "$argument" ]; then
|
||||
to_utf8 "$argument" |
|
||||
tidy -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
|
||||
tidy -asxhtml -utf8 2>/dev/null | pandoc --ignore-args -r html -w markdown "$@"
|
||||
else
|
||||
err "File '$argument' not found."
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user