task_list

package
v1.0.1-0...-65d85cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskList

type TaskList struct{}

func New

func New() *TaskList

任务/待办列表(TODO list)。

支持标记任务在原文中的位置,以方便在页面上点击后直接修改任务状态。

格式:

- [ ] Task1 - [x] Task2

func (*TaskList) Extend

func (e *TaskList) Extend(m goldmark.Markdown)

func (*TaskList) RegisterFuncs

func (e *TaskList) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

func (*TaskList) Transform

func (e *TaskList) Transform(node *ast.Document, reader text.Reader, pc parser.Context)

... implements parser.ASTTransformer. TODO 只处理第一层任务。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL