Convert Markdown (MD) files to HTML format for web publishing.
作者:qiqiqi 阅读次数:

Method One

npm install i5ting_toc -g

Launch Windows PowerShell

i5ting_toc -f **.md

A preview folder will be created, containing CSS, JS, and style files. In general, the original formatting of the Markdown (MD) file is preserved.
However, some formatting issues still exist, which may be related to the formatting of Yeuque. Further investigation is required.

Method One

Install Pandoc, a powerful tool for converting between document formats. While it can handle a wide range of formats, for example, converting to PDF requires specifying a plugin.
I used the command-line interface for the conversion, but the resulting output lost most of the original styling, and the visual quality was poor. It may be necessary to install specific plugins, apply a custom CSS file, or explore other flexible configuration options. Further research is required to optimize the output.

The parameters are: pandoc -f <source format> -t <target format> -s <input file> -o <output file>
pandoc -f markdown -t pdf -s 2022公众号深圳卫健委.md -o 2022公众号深圳卫健委.pdf --pdf-engine=xelatex -v mainfont="Microsoft YaHei"
pandoc -f markdown -t html -s 企业门户网站服务.md -o 企业门户网站服务.html



返回列表

扫码关注不迷路!!!

郑州升龙商业广场B座25层

service@iqiqiqi.cn

企起期科技 qiqiqi

联系电话:187-0363-0315

联系电话:199-3777-5101