-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.go
41 lines (37 loc) · 1.01 KB
/
tag.go
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
package converters
import "github.com/erikh/gdocs-export/pkg/downloader"
type Tag struct {
NoEscape bool
SkipFirst bool
Collapse bool
RequiresContent bool
LeftPad bool
TrimInside bool
ListItem bool
Escape func(string) string
Link func(string, string) string
Repeat func(int, string) string
ListBefore func(string, int) string
Before func(string) string
After func(string) string
MapFile func(downloader.ManifestFile) string
}
type Token int
const (
TokenPlain = 0
TokenBold = iota
TokenItalic = iota
TokenCode = iota
TokenParagraph = iota
TokenImage = iota
TokenBullet = iota
TokenHeading = iota
TokenTable = iota
TokenTableRow = iota
TokenTableCell = iota
TokenUnorderedBullet = iota
TokenUnorderedList = iota
TokenOrderedBullet = iota
TokenOrderedList = iota
TokenLink = iota
)