-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathstyle_markdown.go
More file actions
25 lines (23 loc) · 886 Bytes
/
style_markdown.go
File metadata and controls
25 lines (23 loc) · 886 Bytes
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
package table
// MarkdownOptions defines options to control Markdown rendering.
type MarkdownOptions struct {
// PadContent pads each column content to match the longest content in
// the column, and extends the separator dashes to match. This makes the
// raw Markdown source more readable without affecting the rendered
// output.
//
// When disabled (default):
// | # | First Name | Last Name | Salary | |
// | ---:| --- | --- | ---:| --- |
// | 1 | Arya | Stark | 3000 | |
//
// When enabled:
// | # | First Name | Last Name | Salary | |
// | ---:| ---------- | --------- | ------:| --------------------------- |
// | 1 | Arya | Stark | 3000 | |
PadContent bool
}
var (
// DefaultMarkdownOptions defines sensible Markdown rendering defaults.
DefaultMarkdownOptions = MarkdownOptions{}
)