diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/yuin/goldmark/extension/ast/tasklist.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/yuin/goldmark/extension/ast/tasklist.go')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/extension/ast/tasklist.go | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/github.com/yuin/goldmark/extension/ast/tasklist.go b/vendor/github.com/yuin/goldmark/extension/ast/tasklist.go deleted file mode 100644 index 670cc1495..000000000 --- a/vendor/github.com/yuin/goldmark/extension/ast/tasklist.go +++ /dev/null @@ -1,35 +0,0 @@ -package ast - -import ( - "fmt" - gast "github.com/yuin/goldmark/ast" -) - -// A TaskCheckBox struct represents a checkbox of a task list. -type TaskCheckBox struct { - gast.BaseInline - IsChecked bool -} - -// Dump implements Node.Dump. -func (n *TaskCheckBox) Dump(source []byte, level int) { - m := map[string]string{ - "Checked": fmt.Sprintf("%v", n.IsChecked), - } - gast.DumpHelper(n, source, level, m, nil) -} - -// KindTaskCheckBox is a NodeKind of the TaskCheckBox node. -var KindTaskCheckBox = gast.NewNodeKind("TaskCheckBox") - -// Kind implements Node.Kind. -func (n *TaskCheckBox) Kind() gast.NodeKind { - return KindTaskCheckBox -} - -// NewTaskCheckBox returns a new TaskCheckBox node. -func NewTaskCheckBox(checked bool) *TaskCheckBox { - return &TaskCheckBox{ - IsChecked: checked, - } -} |
