pbh actually looks good including tables
This commit is contained in:
@@ -267,6 +267,7 @@ html_to_markdown() {
|
|||||||
--wrap=none \
|
--wrap=none \
|
||||||
--strip-comments \
|
--strip-comments \
|
||||||
-o - \
|
-o - \
|
||||||
|
| grep -v '^\+[-+]*\+$' \
|
||||||
| sed 's/{[^}]*data[^}]*}//g' \
|
| sed 's/{[^}]*data[^}]*}//g' \
|
||||||
| sed 's/\[](#[^)]*)//' \
|
| sed 's/\[](#[^)]*)//' \
|
||||||
| cat \
|
| cat \
|
||||||
@@ -301,9 +302,11 @@ html_to_markdown() {
|
|||||||
| sed 's/+===/|===/g' \
|
| sed 's/+===/|===/g' \
|
||||||
| sed 's/---+/---|/g' \
|
| sed 's/---+/---|/g' \
|
||||||
| sed 's/+---/|---/g' \
|
| sed 's/+---/|---/g' \
|
||||||
| grep -v '^|-[-|]*-|$' \
|
|
||||||
| sed '/^|[=|]*|$/s/=/-/g' \
|
| sed '/^|[=|]*|$/s/=/-/g' \
|
||||||
|
|
||||||
|
#| grep -v '^|-[-|]*-|$' \
|
||||||
|
#| sed '/ |\r|-[-|]*-|\r| /s/-/=/g' \
|
||||||
|
#| sed 's/\r\r| \([^\r]*\) |\r|[^=]/\r\r| \1 |\r|=============================|\r|/g' \
|
||||||
#| sed 's/:::\(.*\):::/```\1```/g' \
|
#| sed 's/:::\(.*\):::/```\1```/g' \
|
||||||
|
|
||||||
rm "$f"
|
rm "$f"
|
||||||
|
|||||||
Reference in New Issue
Block a user