# How to convert markdown link to html using Pandoc ## Issue Pandoc cannot convert a link's URL as expected. Markdown: [Document](./document.md) HTML: Document Expected HTML: Document ## Procedures According to [ota-meshi's procedures](http://qiita.com/ota-meshi/items/50d1e2b06ce0fe46f1ae), it is quite easy. The following is what I did in less than 15 minutes. 1. Down and install [Pandoc](https://github.com/jgm/pandoc/releases/tag/1.19.2.1) 1. Down and install [Python](https://www.python.org/downloads/windows/) because Panflute requies Python to run. 1. According to [Panflute's guide](http://scorreia.com/software/panflute/install.html) I executed the following command. - no proxy > pip install panflute - behind proxy > pip install panflute --proxy http://:@ 1. I also install [pypandoc](https://pypi.python.org/pypi/pypandoc) so that I can avoid using external commands. - no proxy > pip install pypandoc - behind proxy > pip install pypandoc --proxy http://:@ 1. Copy and paste the following [Python files](https://gist.github.com/dixonsiu/2b98aed52f2f4106f74af8978fc8245b) to a temp folder. 1. convert_link.py 1. markdown_to_html.py 1. Move to the directory that contains markdown file(s). 1. Execute the following command. By the way, this command automatically convert README.md to index.html.   - To use Japanese CSS (/ja/github.css)   > python /markdown_to_html.py --locale ja - To use English CSS (/en/github.css) > python /markdown_to_html.py --locale en