-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.js
More file actions
17 lines (13 loc) · 612 Bytes
/
Copy pathcli.js
File metadata and controls
17 lines (13 loc) · 612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
const MDParser = require('./index')
const Parser = new MDParser()
Parser.on('complete', content => Parser.writeOutput(content))
Parser.pedantic = Parser.getCLIArg('--pedantic') || false
Parser.gfm = Parser.getCLIArg('--gfm') || true
Parser.tables = Parser.getCLIArg('--tables') || true
Parser.breaks = Parser.getCLIArg('--breaks') || false
Parser.sanitize = Parser.getCLIArg('--sanitize') || false
Parser.smartlists = Parser.getCLIArg('--smartlists') || true
Parser.smartypants = Parser.getCLIArg('--smartypants') || false
Parser.xhtml = Parser.getCLIArg('--xhtml') || false
Parser.run()