Documentation
¶
Index ¶
- Variables
- func DetectAutomaticLink(s *Context) (consumed int)
- func DetectCode(s *Context) (consumed int)
- func DetectEmphasis(s *Context) (consumed int)
- func DetectEscapedChar(s *Context) (consumed int)
- func DetectImage(s *Context) (consumed int)
- func DetectLink(s *Context) (consumed int)
- func Parse(buf []byte, detectors []Detector) []md.Tag
- type Context
- type Detector
- type DetectorFunc
- type MaybeOpening
- type NodeType
- type OpeningsStack
- type Span
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDetectors = []Detector{ DetectorFunc(DetectEscapedChar), DetectorFunc(DetectLink), DetectorFunc(DetectEmphasis), DetectorFunc(DetectCode), DetectorFunc(DetectImage), DetectorFunc(DetectAutomaticLink), }
Functions ¶
func DetectAutomaticLink ¶
func DetectCode ¶
func DetectEmphasis ¶
func DetectEscapedChar ¶
func DetectImage ¶
func DetectLink ¶
Types ¶
type DetectorFunc ¶
func (DetectorFunc) Detect ¶
func (d DetectorFunc) Detect(s *Context) (consumed int)
type MaybeOpening ¶
type OpeningsStack ¶
type OpeningsStack []MaybeOpening
func (OpeningsStack) NullTopmostTagged ¶
func (s OpeningsStack) NullTopmostTagged(tag string) bool
func (OpeningsStack) Peek ¶
func (s OpeningsStack) Peek() *MaybeOpening
func (*OpeningsStack) Pop ¶
func (s *OpeningsStack) Pop()
func (*OpeningsStack) PopTo ¶
func (s *OpeningsStack) PopTo(f func(*MaybeOpening) bool) (MaybeOpening, bool)
func (*OpeningsStack) Push ¶
func (s *OpeningsStack) Push(o MaybeOpening)
Click to show internal directories.
Click to hide internal directories.