Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document interface {
// ListLinks iterates parsed links in this document
// and invokes cb on every link
ListLinks(cb OnLinkListed)
// Bytes returns the parsed document content bytes
Bytes() []byte
}
Document is the markdown model parsed from bytes data
type Link ¶
type Link interface {
SetText(text []byte)
SetDestination(text []byte)
SetTitle(text []byte)
GetText() []byte
GetDestination() []byte
GetTitle() []byte
Remove(leaveText bool)
IsImage() bool
IsAutoLink() bool
IsNormalLink() bool
}
Link is a markdown link which can be a normal link or an embedded image reference
type OnLinkListed ¶
type OnLinkListed func(link Link)
OnLinkListed is a callback function invoked by the ListLinks iterator in Document
Click to show internal directories.
Click to hide internal directories.