MCPcopy
hub / github.com/russross/blackfriday / NewNode

Function NewNode

node.go:136–141  ·  view source on GitHub ↗

NewNode allocates a node of a specified type.

(typ NodeType)

Source from the content-addressed store, hash-verified

134
135// NewNode allocates a node of a specified type.
136func NewNode(typ NodeType) *Node {
137 return &Node{
138 Type: typ,
139 open: true,
140 }
141}
142
143func (n *Node) String() string {
144 ellipsis := ""

Callers 13

addChildMethod · 0.85
NewFunction · 0.85
codeSpanFunction · 0.85
maybeLineBreakFunction · 0.85
lineBreakFunction · 0.85
linkFunction · 0.85
leftAngleFunction · 0.85
escapeFunction · 0.85
autoLinkFunction · 0.85
helperEmphasisFunction · 0.85
helperDoubleEmphasisFunction · 0.85
helperTripleEmphasisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…