Skip to content

Commit be2a744

Browse files
committed
update to new kapsis api
Signed-off-by: George Lemon <georgelemon@protonmail.com>
1 parent 9c5ffb7 commit be2a744

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/marvdown.nim

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ elif isMainModule:
9292
stdout.writeLine(md.toJson())
9393

9494
# Kapsis CLI Application
95-
commands:
96-
html path(`md`), ?filename(`output`),
97-
bool(--optAnchors),
98-
bool(--bench):
99-
## Write a markdown document to HTML
100-
101-
json path(`md`):
102-
## Export the markdown AST as JSON
95+
initKapsis do:
96+
commands:
97+
html path(md), ?filename(output),
98+
?bool("--optAnchors"),
99+
?bool("--bench"):
100+
## Write a markdown document to HTML
101+
102+
json path(md):
103+
## Export the markdown AST as JSON
103104

104105
else:
105106
# Use Marvdown as Nimble library

0 commit comments

Comments
 (0)