minor adjustments to markdown / rst templates

- remote prompts from default output
- add missing HTML block
- remove double-wrapping of latex
- use plain-markdown indentation for code blocks (could use GFM '` ` `python')

closes #4024

candidate for backport to 1.1