File tree Expand file tree Collapse file tree 6 files changed +175
-2405
lines changed Expand file tree Collapse file tree 6 files changed +175
-2405
lines changed Original file line number Diff line number Diff line change 19
19
run : |
20
20
npm ci
21
21
tsc
22
- node bin /index.js -s ./example
22
+ node dist /index.js -s ./example
23
23
- name : commit and push
24
24
run : |
25
25
cd output
Original file line number Diff line number Diff line change @@ -76,4 +76,4 @@ typings/
76
76
.fusebox /
77
77
78
78
output /
79
- bin /
79
+ dist /
Original file line number Diff line number Diff line change 1
- # HackMD to HTML cli
1
+ # hackmd-to-html- cli
2
2
3
- ![ ] ( https://img.shields.io/github/workflow/status/liao2000/HackMD-to-HTML/publish ?style=flat-square )
3
+ ![ ] ( https://img.shields.io/github/workflow/status/liao2000/HackMD-to-HTML/CI ?style=flat-square )
4
4
[ ![ NPM version] ( https://img.shields.io/npm/v/hackmd-to-html-cli.svg?style=flat-square )] ( https://www.npmjs.org/package/hackmd-to-html-cli )
5
5
6
6
A simple Node.js wrapper for ` markdown-it ` . This tool helps to convert HackMD markdown files to HTML files.
7
7
8
- > See DEMO: [ https://liao2000.github.io/HackMD-to-HTML/ ] ( https://liao2000.github.io/HackMD-to-HTML/ )
9
-
10
8
## Install
11
9
12
10
``` sh
13
11
npm install -g hackmd-to-html-cli
14
12
```
15
13
14
+ See demo: [ https://liao2000.github.io/HackMD-to-HTML/ ] ( https://liao2000.github.io/HackMD-to-HTML/ )
15
+
16
16
## Usage
17
17
18
18
``` sh
@@ -38,7 +38,6 @@ $ hmd2html -s file1.md file2.md file3.md
38
38
$ hmd2html -s ./dir1 ./dir2
39
39
40
40
# files or directories
41
-
42
41
$ hmd2html -s file1.md ./dir1
43
42
```
44
43
@@ -50,18 +49,17 @@ $ hmd2html -s file1.md -d ./out
50
49
51
50
### Use custom layout
52
51
53
-
54
52
``` sh
55
53
$ hmd2html -s hello.md -l ./myLayout.html
56
54
```
57
55
58
56
+ /
59
- + output
57
+ + output/ * generated *
60
58
+ hello.html
61
59
+ hello.md
62
60
+ myLayout.html
63
61
64
- ** myLayout.html**
62
+ ** ./ myLayout.html**
65
63
``` html
66
64
<html >
67
65
<head ></head >
@@ -71,12 +69,12 @@ $ hmd2html -s hello.md -l ./myLayout.html
71
69
</html >
72
70
```
73
71
74
- ** hello.md**
72
+ ** ./ hello.md**
75
73
``` markdown
76
74
# hello
77
75
```
78
76
79
- ** hello.html**
77
+ ** ./output/ hello.html**
80
78
``` html
81
79
<html >
82
80
<head ></head >
You can’t perform that action at this time.
0 commit comments