Skip to content

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

License

Notifications You 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

gm2h

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.md
touch index.md

# Run gm2h
gm2h

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 supports Handlebars.

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

The filename extension must be hbs.

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