We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab264b commit 6f68950Copy full SHA for 6f68950
html2text.go
@@ -18,6 +18,7 @@ type Options struct {
18
PrettyTables bool // Turns on pretty ASCII rendering for table elements.
19
PrettyTablesOptions *PrettyTablesOptions // Configures pretty ASCII rendering for table elements.
20
OmitLinks bool // Turns on omitting links
21
+ NoStrongs bool // Ignores <b> and <strong> tags
22
TightLinks bool // Removes whitespace around links
23
}
24
@@ -231,6 +232,9 @@ func (ctx *textifyTraverseContext) handleElement(node *html.Node) error {
231
232
return err
233
234
str := subCtx.buf.String()
235
+ if ctx.options.NoStrongs {
236
+ return ctx.emit(str)
237
+ }
238
return ctx.emit("*" + str + "*")
239
240
case atom.A:
0 commit comments