Skip to content

rhodey/mdpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdpage

Small cli for markdown-it

Used to publish lock.host and hecate.video

Usage

  • Mdpage renders the input to HTML and adds it to <body>
  • Pass -i index.html if you have an index.html file with for example css to include
  • Pass -s with an html selector such as #text to place the markdown inside the element with id=text
  • All other args used as markdown-it configs
npm install -g @rhodey/mdpage
mdpage README.md > readme.html
mdpage README.md -i index.html > readme.html
mdpage README.md -i index.html -s "#text" > readme.html
mdpage README.md --html true > readme.html (enables html in markdown)

License

Copyright 2026 - [email protected]

MIT

About

markdown to html

Topics

Resources

License

Stars

Watchers

Forks

Contributors