Total Pageviews

Sunday 20 October 2024

用yue-gen把md文件转换为html文件


简体中文版

A friendly reminder, my English is not very good, so I use machine translation of this article.

Installation

Use npm to install:

npm install -g yue-gen

or yarn:

yarn global addd yue-gen

pnpm is aslo available:

pnpm install -g yue-gen

Use

If you have a Markdown file whose path is "D:\yue\readme.md" and you want to compile it into HTML, run this command.

yue-gen g D:\yue\ readme.md index.html

Then, yue.css will translate the contents of readme.md to HTML and write it to index.html. This index.html will be created in D:\yue.

While translating, the style file in yue.css will be transferred to a style tag in index.html, so you can just write Markdown without worrying, and leave everything about HTML to yue-gen.

from  https://github.com/Adkimsm/yue-gen

No comments:

Post a Comment