Documentation ¶
Index ¶
Constants ¶
View Source
const (
AutoLinkUserHandle ast.AutoLinkType = ast.AutoLinkURL + 1
)
Variables ¶
View Source
var KindUserHandle = ast.NewNodeKind("UserHandle")
KindUserHandle is a NodeKind of the UserHandle node.
Functions ¶
func NewHandle ¶
NewHandle creates a new goldmark.Extender that allow you to parse text that seems like a @userhandle
func NewHandleParser ¶
func NewHandleParser() parser.InlineParser
NewHandleParser return a new InlineParser can parse text that seems like a URL.
func NewUserHandleRenderer ¶
Types ¶
type UserHandle ¶
type UserHandle struct { ast.BaseInline // contains filtered or unexported fields }
An UserHandle struct represents an autolink of the Markdown text.
func NewUserHandle ¶
func NewUserHandle(value *ast.Text) *UserHandle
NewUserHandle returns a new UserHandle node.
func (*UserHandle) Dump ¶
func (n *UserHandle) Dump(source []byte, level int)
Dump implements Node.Dump
func (*UserHandle) Label ¶
func (n *UserHandle) Label(source []byte) []byte
func (*UserHandle) UserName ¶
func (n *UserHandle) UserName(source []byte) []byte
type UserHandleRenderer ¶
func (*UserHandleRenderer) RegisterFuncs ¶
func (r *UserHandleRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
Click to show internal directories.
Click to hide internal directories.