diff --git a/README.md b/README.md index 80a7b21..132efb3 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Below is a demo of the Atom version. * `Markdown Preview Enhanced: Create TOC` * `Markdown Preview Enhanced: Open Mermaid Config` * `Markdown Preview Enhanced: Open MathJax Config` +* `Markdown Preview Enhanced: Open PhantomJS Config` * `Markdown Preview Enhanced: Insert New Slide` * `Markdown Preview Enhanced: Insert Table` * `Markdown Preview Enhanced: Insert Page Break` @@ -30,9 +31,14 @@ Below is a demo of the Atom version. For more features that will be supported in the future, check [Markdown Preview Enhanced for atom](https://shd101wyy.github.io/markdown-preview-enhanced/#/). -### Progress so far +### Progress so far +#### July 4, 2017 +*Basically finished porting.* +* Done [PhantomJS export](./docs/phantomjs.md). +* Done [pandoc parser](https://shd101wyy.github.io/markdown-preview-enhanced/#/pandoc?id=pandoc-parser) support. +* Added `Gothic`, `Newsprint`, and `Night` preview themes. + #### June 20, 2017 -Basically finished. * Done [Pandoc export](https://shd101wyy.github.io/markdown-preview-enhanced/#/pandoc-pdf). (Not tested). * Done Markdown(GFM) export. (Not tested) * Done [TOC](https://shd101wyy.github.io/markdown-preview-enhanced/#/toc) implementation. diff --git a/docs/phantomjs.md b/docs/phantomjs.md new file mode 100644 index 0000000..e88a5df --- /dev/null +++ b/docs/phantomjs.md @@ -0,0 +1,54 @@ +# PhantomJS Export + +**PhantomJS** supports `pdf`, `jpeg`, and `png` file export. +You need to download and install [phantomjs](http://phantomjs.org/download.html) first. + +## Usage +Right click at the preview, then click `PhantomJS`. Choose the file type you want to export. + +## Configuration +You can edit phantomjs configuration by running `Markdown Preview Enhanced: Open PhantomJS Config` command. + +The `phantomjs_header_footer_config.js` file should look like this: + + +```javascript +'use strict' +/* +configure header and footer (and other options) +more information can be found here: + https://github.com/marcbachmann/node-html-pdf +Attention: this config will override your config in exporter panel. + +eg: + + let config = { + "header": { + "height": "45mm", + "contents": '