mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 09:16:43 +00:00
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:
@@ -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