Fixed a bug in pweave.pypublish

- Fixed mathjax in template
- Added markdown extension to handle math in md2html