aboutsummaryrefslogtreecommitdiff
path: root/html2md_cli.yaml
blob: 642b72c4ed4b262173633d3452407e4156bf5438 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# program name, name for the executable
ProgramName: html2md
Authors: Tong Sun
Since: 2020

PackageName: main

Name: html2md
Desc: HTML to Markdown
Text: HTML to Markdown converter on command line
#NumArg: cli.AtLeast(1)
NumOption: cli.AtLeast(1)

UsageLead: "Usage:\\n  html2md [Options...]"


Options:
  - Name: Filei
    Type: '*clix.Reader'
    Flag: "*i,in"
    Usage: 'The html/xml file to read from (or stdin)'

  - Name: Domain
    Type: 'string'
    Flag: 'd,domain'
    Usage: "Domain of the web page, needed for links when --in is not url"

  - Name: Sel
    Type: 'string'
    Flag: 's,sel'
    Usage: "CSS/goquery selectors"
    Value: "body"

  - Name: Verbose
    Type: cli.Counter
    Flag: v,verbose
    Usage: "Verbose mode (Multiple -v options increase the verbosity.)\\n"

# Options

  - Name: OptHeadingStyle
    Type: "string"
    Flag: "opt-heading-style"
    Usage: Option HeadingStyle

  - Name: OptHorizontalRule
    Type: "string"
    Flag: "opt-horizontal-rule"
    Usage: Option HorizontalRule

  - Name: OptBulletListMarker
    Type: "string"
    Flag: "opt-bullet-list-marker"
    Usage: Option BulletListMarker

  - Name: OptCodeBlockStyle
    Type: "string"
    Flag: "opt-code-block-style"
    Usage: Option CodeBlockStyle

  - Name: OptFence
    Type: "string"
    Flag: "opt-fence"
    Usage: Option Fence

  - Name: OptEmDelimiter
    Type: "string"
    Flag: "opt-em-delimiter"
    Usage: Option EmDelimiter

  - Name: OptStrongDelimiter
    Type: "string"
    Flag: "opt-strong-delimiter"
    Usage: Option StrongDelimiter

  - Name: OptLinkStyle
    Type: "string"
    Flag: "opt-link-style"
    Usage: Option LinkStyle

  - Name: OptLinkReferenceStyle
    Type: "string"
    Flag: "opt-link-reference-style"
    Usage: "Option LinkReferenceStyle"

  - Name: OptEscapeMode
    Type: "string"
    Flag: "opt-escape-mode"
    Usage: "Option EscapeMode\\n"


# Plugins

  - Name: PluginConfluenceAttachments
    Type: bool
    Flag: "A,plugin-conf-attachment"
    Usage: Plugin ConfluenceAttachments

  - Name: PluginConfluenceCodeBlock
    Type: bool
    Flag: "C,plugin-conf-code"
    Usage: Plugin ConfluenceCodeBlock

  - Name: PluginFrontMatter
    Type: bool
    Flag: "F,plugin-frontmatter"
    Usage: Plugin FrontMatter

  - Name: PluginGitHubFlavored
    Type: bool
    Flag: "G,plugin-gfm"
    Usage: Plugin GitHubFlavored

  - Name: PluginStrikethrough
    Type: bool
    Flag: "S,plugin-strikethrough"
    Usage: Plugin Strikethrough

  - Name: PluginTable
    Type: bool
    Flag: "T,plugin-table"
    Usage: Plugin Table

  - Name: PluginTableCompat
    Type: bool
    Flag: "plugin-table-compat"
    Usage: Plugin TableCompat

  - Name: PluginTaskListItems
    Type: bool
    Flag: "L,plugin-task-list"
    Usage: Plugin TaskListItems

  - Name: PluginVimeoEmbed
    Type: bool
    Flag: "V,plugin-vimeo"
    Usage: Plugin VimeoEmbed

  - Name: PluginYoutubeEmbed
    Type: bool
    Flag: "Y,plugin-youtube"
    Usage: Plugin YoutubeEmbed