mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2025-12-11 13:54:49 -06:00
build: Add postprocessing support to unwrap figures.
This commit is contained in:
parent
87922e6e8c
commit
d603f0782b
@ -114,6 +114,11 @@ function build_source {
|
||||
-e 's|{{[ ]*meta\.license-url[ ]*}}|'"${DOCUMENT_License_URL:-}"'|g' \
|
||||
-e 's|{{[ ]*base\.relpath[ ]*}}|'"${BASE_RELPATH:-}"'|g' \
|
||||
-i .sedbak "${DEST}.html"
|
||||
# postprocess
|
||||
sed -E \
|
||||
-e 's|<p><figure>|<figure>|' \
|
||||
-e 's|</figure></p>|</figure>|' \
|
||||
-i .sedbak "${DEST}.html"
|
||||
|
||||
# clean up
|
||||
rm -f "${DEST}.markdown"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user