- Notifications
You must be signed in to change notification settings - Fork0
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
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Generate markdown to HTML.
This program that automatically converts markdown files to HTML files when they are saved.
cargo install --git https://github.com/shinshin86/gm2h.git
# 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
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