Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

This program that automatically converts markdown files to HTML files when they are saved.

License

NotificationsYou must be signed in to change notification settings

shinshin86/gm2h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Generate markdown to HTML.

This program that automatically converts markdown files to HTML files when they are saved.

Demo

Demo

Install

cargo install --git https://github.com/shinshin86/gm2h.git

Usage

# Create index.mdtouch index.md# Run gm2hgm2h

Let's edit the markdown file.
An generated HTML file is generated in the current directory.

directory can also be specified for use. See--help for details.

gm2h --help

Use template file

gm2h supportsHandlebars.

As an example, create a template like this Write{{{html}}} where you want to embed the generated HTML.

The filename extension must behbs.

example:template.hbs

<!doctype html><html>  <head>    <title>Template sample</title>  </head>  <body>{{{html}}}  </body></html>

Optionally specify the file path of the template file you created.

gm2h -t=template.hbs

Template demo

Template demo

License

MIT

Author

Yuki Shindo

About

This program that automatically converts markdown files to HTML files when they are saved.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp