{"repo":"ksw2000/hackmd-to-html-cli","free":true,"listed":false,"github":"https://github.com/ksw2000/hackmd-to-html-cli","clone":"git clone https://github.com/ksw2000/hackmd-to-html-cli.git","description":"A CLI/Package converts HackMD markdown to HTML.","language":"TypeScript","stars":26,"topics":["nodejs","hackmd","markdown","npm"],"license":"MIT","category":"cli-tools","readme_excerpt":"hackmd-to-html-cli Not only is this a CLI tool, but it is also an importable package for converting standard Markdown and even HackMD-supported Markdown into HTML. + Example of input markdown: ./example/index.md + Example of output html: https://ksw2000.github.io/hackmd-to-html-cli/ + Example of output html in dark mode: https://ksw2000.github.io/hackmd-to-html-cli/index.dark.html + Example of converting in web: https://ksw2000.github.io/hackmd-to-html-cli/webjs.html Install CLI Convert Layouts We provide the two default layouts. Please see layouts here: https://github.com/ksw2000/hackmd-to-html-cli/blob/main/layouts/ + {{main}} renders main content of markdown. + {{lang}} renders lang property if there are yaml metadata about lang in markdown file. e.g. lang=\"zh-TW\" + {{dir}} renders dir property if there are yaml metadata about dir in markdown file. e.g. dir=\"ltr\" + {{meta}} renders meta tag if there are yaml metadata about title , description , robots or image . e.g. Example: There are some features rendered by other dependencies. Thus, in our default layout, we include those dependencies. Example CommonJS ES Module Web Support hmd2html : our tool (the latest) HackMD Default Converter : The default markdown to html converter provided by HackMD, i.e., download HTML file on HackMD. HackMD fully supports syntax: features Features hmd2html HackMD Default Converter --------------------------------- :--: :--: ToC ✅ ✅ Emoji ✅ ✅ ToDo list ✅ ✅ Code block ✅ ✅ - Show line number or n","default_branch":null,"files":null,"tree":[],"storefront":"/r/ksw2000","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ksw2000/hackmd-to-html-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}