Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomRule ¶
CustomRule is an interface to define custom conversion rules
Rule method accepts `next WalkFunc` as an argument, which `customRule` should call to let walk function continue parsing the content inside the HTML tag. It returns a tagName to indicate what HTML element this `customRule` handles and the `customRule` function itself, where conversion logic should reside.
See example TestRule implementation in godown_test.go
type Option ¶
type Option struct { GuessLang func(string) (string, error) Script bool Style bool TrimSpace bool CustomRules []CustomRule IgnoreComments bool ItalicsAsterix bool // Used to know if to use _ or * for italics DoNotEscape bool // Used to know if to escape certain characters // contains filtered or unexported fields }
Option is optional information for Convert.
Click to show internal directories.
Click to hide internal directories.