marianoguerra / rst2html5

transform restructuredtext documents to html5 + twitter's bootstrap css, deck.js or reveal.js
http://marianoguerra.github.com/rst2html5
MIT License
177 stars 51 forks source link

Adding `--pretty-print-code` makes pages appears empty #91

Open pcav opened 7 years ago

pcav commented 7 years ago

Hi, the command:

rst2html5 --embed-images --jquery --reveal-js --reveal-js-opts theme=faunalia in.rst out.html

creates readable slides, whereas adding --pretty-print-code:

rst2html5 --embed-images --jquery --reveal-js --reveal-js-opts theme=faunalia --pretty-print-code in.rst out.html

results in pages not displaying text (only background). In and out code available if useful. Thanks.

pcav commented 7 years ago

Further testing: this does not appear to be related to the option, but to the repeated running of the same command. On second run, a large chunk of code is placed on a different place in the document (before Head JS The only script in your <HEAD> instead of at end of it.

pcav commented 7 years ago

This is the chunk:

selobu commented 7 years ago

possible is here

rst2html5 --embed-images --jquery --reveal-js --reveal-js-opts theme=faunalia --pretty-print-code in.rst out.html

you should use --theme=faunalia

pcav commented 7 years ago

Tried, but now I get a series of errors of the type: rst2html5: error: no such option: --embed-images