don't use numeric escapes that's not proper!
This commit is contained in:
parent
92222d41b8
commit
52ab4c7dd0
12
build.sh
12
build.sh
|
@ -44,10 +44,12 @@ __SHLVL=0
|
|||
|
||||
# lowdown wrapper function
|
||||
__lowdown() {
|
||||
lowdown --html-no-owasp --html-no-skiphtml --html-no-escapehtml "$@" | sed -E '
|
||||
s/̵[67];/\'/g
|
||||
s/–/--/g
|
||||
s/̶[01];/\"/g'
|
||||
lowdown --html-no-owasp --html-no-skiphtml --html-no-escapehtml --html-no-num-ent "$@" | \
|
||||
sed -E '
|
||||
s/&[lr]squo;/\'/g
|
||||
s/–/--/g
|
||||
s/&[lr]dquo;/\"/g
|
||||
'
|
||||
}
|
||||
|
||||
# process a pure markdown file
|
||||
|
@ -122,7 +124,7 @@ escape() {
|
|||
*\<*) __ESC_STR="${__ESC_STR%<*}<${__ESC_STR##*<}" ;;
|
||||
*\>*) __ESC_STR="${__ESC_STR%>*}>${__ESC_STR##*>}" ;;
|
||||
*\"*) __ESC_STR="${__ESC_STR%\"*}"${__ESC_STR##*\"}" ;;
|
||||
*\'*) __ESC_STR="${__ESC_STR%\'*}'${__ESC_STR##*\'}" ;;
|
||||
*\'*) __ESC_STR="${__ESC_STR%\'*}'${__ESC_STR##*\'}" ;;
|
||||
*) break;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue