Skip to content

Commit

Permalink
Fix footnote issue due to HTMLBook tool's broken handling of math tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed May 9, 2017
1 parent bb05203 commit 2747c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -76,11 +76,11 @@ $(BUILD_HTMLBOOK)/%.html: $(BUILD_NB)/%.ipynb
echo Chapter: $$TITLE ;\
PYTHONIOENCODING="utf_8" tools/latex_to_mathml.py $@.md > $@.mathml && mv $@.mathml $@.md ; \
PYTHONIOENCODING="utf_8" tools/footnote_fixer.py $@.md > $@.footnoted && cp $@.footnoted /tmp && mv $@.footnoted $@.md ; \
htmlbook -c -s $@.md -o $@ -t "$$TITLE"
PYTHONIOENCODING="utf_8" tools/strip_jupyter_style.py $@ > $@.unstyled && mv $@.unstyled $@ ; \
${SED_I} 's/^<math/ <math/' $@.md ; \
htmlbook -c -s $@.md -o $@ -t "$$TITLE"; \
PYTHONIOENCODING="utf_8" tools/strip_jupyter_style.py $@ > $@.unstyled && mv $@.unstyled $@

xmllint --schema OReilly_HTMLBook/schema/htmlbook.xsd --noout $@

htmlbook -s $@.md -o $@
rm $@.md

Expand Down

0 comments on commit 2747c5c

Please sign in to comment.