Skip to content

hayatogh/md2hl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML w/ Code Highlight

Sample Output

This README is rendered to (README.html)!

Setup

npm install -g matsuhav/md2hl

Done!

Usage

md2hl README.md >README.html

Done!

I recommend creating your own custom shell script (file is md2hl.sh)

#!/usr/bin/env bash
set -euo pipefail

md2hl "$1" >"${1%.md}.html"

Sample Output

Tasklists

  • Write script
  • Publish to GitHub
  • Create shell script like Usage section

C

#include <stdio.h>

int main(void) {
	int x = 42;
	if (x != 42) {
		return 1
	}
	return 0;
}

Scheme

(define x 42)
(display ((lambda (x)
            (1+ x))
          x))

About

Convert Markdown to HTML with github-markdown-css and highlight.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published