type github.com/yuin/goldmark/ast.Node
225 uses
github.com/yuin/goldmark/ast (current package)
ast.go#L49: type Node interface {
ast.go#L57: NextSibling() Node
ast.go#L60: PreviousSibling() Node
ast.go#L63: Parent() Node
ast.go#L66: SetParent(Node)
ast.go#L69: SetPreviousSibling(Node)
ast.go#L72: SetNextSibling(Node)
ast.go#L81: FirstChild() Node
ast.go#L84: LastChild() Node
ast.go#L87: AppendChild(self, child Node)
ast.go#L91: RemoveChild(self, child Node)
ast.go#L94: RemoveChildren(self Node)
ast.go#L97: SortChildren(comparator func(n1, n2 Node) int)
ast.go#L102: ReplaceChild(self, v1, insertee Node)
ast.go#L107: InsertBefore(self, v1, insertee Node)
ast.go#L112: InsertAfter(self, v1, insertee Node)
ast.go#L174: firstChild Node
ast.go#L175: lastChild Node
ast.go#L176: parent Node
ast.go#L177: next Node
ast.go#L178: prev Node
ast.go#L183: func ensureIsolated(v Node) {
ast.go#L195: func (n *BaseNode) SetPreviousSibling(v Node) {
ast.go#L200: func (n *BaseNode) SetNextSibling(v Node) {
ast.go#L205: func (n *BaseNode) PreviousSibling() Node {
ast.go#L210: func (n *BaseNode) NextSibling() Node {
ast.go#L215: func (n *BaseNode) RemoveChild(self, v Node) {
ast.go#L238: func (n *BaseNode) RemoveChildren(self Node) {
ast.go#L252: func (n *BaseNode) SortChildren(comparator func(n1, n2 Node) int) {
ast.go#L253: var sorted Node
ast.go#L285: func (n *BaseNode) FirstChild() Node {
ast.go#L290: func (n *BaseNode) LastChild() Node {
ast.go#L300: func (n *BaseNode) Parent() Node {
ast.go#L305: func (n *BaseNode) SetParent(v Node) {
ast.go#L310: func (n *BaseNode) AppendChild(self, v Node) {
ast.go#L327: func (n *BaseNode) ReplaceChild(self, v1, insertee Node) {
ast.go#L333: func (n *BaseNode) InsertAfter(self, v1, insertee Node) {
ast.go#L338: func (n *BaseNode) InsertBefore(self, v1, insertee Node) {
ast.go#L438: func DumpHelper(v Node, source []byte, level int, kv map[string]string, cb func(int)) {
ast.go#L483: type Walker func(n Node, entering bool) (WalkStatus, error)
ast.go#L486: func Walk(n Node, walker Walker) error {
ast.go#L491: func walkHelper(n Node, walker Walker) (WalkStatus, error) {
block.go#L154: func IsParagraph(node Node) bool {
inline.go#L130: func (n *Text) Merge(node Node, source []byte) bool {
inline.go#L195: func MergeOrAppendTextSegment(parent Node, s textm.Segment) {
inline.go#L207: func MergeOrReplaceTextSegment(parent Node, n Node, s textm.Segment) {
github.com/yuin/goldmark/extension
definition_list.go#L29: func (b *definitionListParser) Open(parent gast.Node, reader text.Reader, pc parser.Context) (gast.Node, parser.State) {
definition_list.go#L74: func (b *definitionListParser) Continue(node gast.Node, reader text.Reader, pc parser.Context) parser.State {
definition_list.go#L89: func (b *definitionListParser) Close(node gast.Node, reader text.Reader, pc parser.Context) {
definition_list.go#L116: func (b *definitionDescriptionParser) Open(parent gast.Node, reader text.Reader, pc parser.Context) (gast.Node, parser.State) {
definition_list.go#L146: func (b *definitionDescriptionParser) Continue(node gast.Node, reader text.Reader, pc parser.Context) parser.State {
definition_list.go#L152: func (b *definitionDescriptionParser) Close(node gast.Node, reader text.Reader, pc parser.Context) {
definition_list.go#L202: func (r *DefinitionListHTMLRenderer) renderDefinitionList(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
definition_list.go#L220: func (r *DefinitionListHTMLRenderer) renderDefinitionTerm(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
definition_list.go#L238: func (r *DefinitionListHTMLRenderer) renderDefinitionDescription(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
footnote.go#L35: func (b *footnoteBlockParser) Open(parent gast.Node, reader text.Reader, pc parser.Context) (gast.Node, parser.State) {
footnote.go#L73: func (b *footnoteBlockParser) Continue(node gast.Node, reader text.Reader, pc parser.Context) parser.State {
footnote.go#L86: func (b *footnoteBlockParser) Close(node gast.Node, reader text.Reader, pc parser.Context) {
footnote.go#L124: func (s *footnoteParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
footnote.go#L225: var container gast.Node = footnote
footnote.go#L241: list.SortChildren(func(n1, n2 gast.Node) int {
footnote.go#L269: IDPrefixFunction func(gast.Node) []byte
footnote.go#L310: c.IDPrefixFunction = value.(func(gast.Node) []byte)
footnote.go#L375: value func(gast.Node) []byte
footnote.go#L387: func WithFootnoteIDPrefixFunction(a func(gast.Node) []byte) FootnoteOption {
footnote.go#L511: func (r *FootnoteHTMLRenderer) renderFootnoteLink(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
footnote.go#L538: func (r *FootnoteHTMLRenderer) renderFootnoteBacklink(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
footnote.go#L559: func (r *FootnoteHTMLRenderer) renderFootnote(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
footnote.go#L578: func (r *FootnoteHTMLRenderer) renderFootnoteList(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
footnote.go#L606: func (r *FootnoteHTMLRenderer) idPrefix(node gast.Node) []byte {
linkify.go#L168: func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node {
linkify.go#L284: func (s *linkifyParser) CloseBlock(parent ast.Node, pc parser.Context) {
strikethrough.go#L25: func (p *strikethroughDelimiterProcessor) OnMatch(consumes int) gast.Node {
strikethrough.go#L46: func (s *strikethroughParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
strikethrough.go#L59: func (s *strikethroughParser) CloseBlock(parent gast.Node, pc parser.Context) {
strikethrough.go#L88: func (r *StrikethroughHTMLRenderer) renderStrikethrough(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
table.go#L295: _ = gast.Walk(v.Cell, func(n gast.Node, entering bool) (gast.WalkStatus, error) {
table.go#L368: func (r *TableHTMLRenderer) renderTable(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
table.go#L390: func (r *TableHTMLRenderer) renderTableHeader(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
table.go#L417: func (r *TableHTMLRenderer) renderTableRow(w util.BufWriter, source []byte, n gast.Node, entering bool) (gast.WalkStatus, error) {
table.go#L476: func (r *TableHTMLRenderer) renderTableCell(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
tasklist.go#L33: func (s *taskCheckBoxParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
tasklist.go#L57: func (s *taskCheckBoxParser) CloseBlock(parent gast.Node, pc parser.Context) {
tasklist.go#L83: func (r *TaskCheckBoxHTMLRenderer) renderTaskCheckBox(w util.BufWriter, source []byte, node gast.Node, entering bool) (gast.WalkStatus, error) {
typographer.go#L138: func (p *typographerDelimiterProcessor) OnMatch(consumes int) gast.Node {
typographer.go#L166: func (s *typographerParser) Parse(parent gast.Node, block text.Reader, pc parser.Context) gast.Node {
typographer.go#L301: func (s *typographerParser) CloseBlock(parent gast.Node, pc parser.Context) {
github.com/yuin/goldmark/parser
atx_heading.go#L81: func (b *atxHeadingParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
atx_heading.go#L162: func (b *atxHeadingParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
atx_heading.go#L166: func (b *atxHeadingParser) Close(node ast.Node, reader text.Reader, pc Context) {
atx_heading.go#L203: func parseLastLineAttributes(node ast.Node, reader text.Reader, pc Context) {
auto_link.go#L24: func (s *autoLinkParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
blockquote.go#L45: func (b *blockquoteParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
blockquote.go#L52: func (b *blockquoteParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
blockquote.go#L59: func (b *blockquoteParser) Close(node ast.Node, reader text.Reader, pc Context) {
code_block.go#L25: func (b *codeBlockParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
code_block.go#L40: func (b *codeBlockParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
code_block.go#L63: func (b *codeBlockParser) Close(node ast.Node, reader text.Reader, pc Context) {
code_span.go#L24: func (s *codeSpanParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
delimiter.go#L23: OnMatch(consumes int) ast.Node
delimiter.go#L157: func ProcessDelimiters(bottom ast.Node, pc Context) {
emphasis.go#L19: func (p *emphasisDelimiterProcessor) OnMatch(consumes int) ast.Node {
emphasis.go#L39: func (s *emphasisParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
fcode_block.go#L26: node ast.Node
fcode_block.go#L35: func (b *fencedCodeBlockParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
fcode_block.go#L71: func (b *fencedCodeBlockParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
fcode_block.go#L102: func (b *fencedCodeBlockParser) Close(node ast.Node, reader text.Reader, pc Context) {
html_block.go#L113: func (b *htmlBlockParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
html_block.go#L159: func (b *htmlBlockParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
html_block.go#L218: func (b *htmlBlockParser) Close(node ast.Node, reader text.Reader, pc Context) {
link.go#L117: func (s *linkParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
link.go#L189: var c ast.Node
link.go#L209: func (s *linkParser) processLinkLabel(parent ast.Node, link *ast.Link, last *linkLabelState, pc Context) {
link.go#L210: var bottom ast.Node
link.go#L212: bottom = v.(ast.Node)
link.go#L224: func (s *linkParser) parseReferenceLink(parent ast.Node, last *linkLabelState, block text.Reader, pc Context) (*ast.Link, bool) {
link.go#L253: func (s *linkParser) parseLink(parent ast.Node, last *linkLabelState, block text.Reader, pc Context) *ast.Link {
link.go#L368: func (s *linkParser) CloseBlock(parent ast.Node, block text.Reader, pc Context) {
list.go#L99: func lastOffset(node ast.Node) int {
list.go#L123: func (b *listParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
list.go#L159: func (b *listParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
list.go#L214: func (b *listParser) Close(node ast.Node, reader text.Reader, pc Context) {
list.go#L220: if bl, ok := c1.(ast.Node); ok && bl.HasBlankPreviousLines() {
list.go#L227: if bl, ok := c.(ast.Node); ok && bl.HasBlankPreviousLines() {
list_item.go#L27: func (b *listItemParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
list_item.go#L53: func (b *listItemParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
list_item.go#L77: func (b *listItemParser) Close(node ast.Node, reader text.Reader, pc Context) {
paragraph.go#L23: func (b *paragraphParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
paragraph.go#L35: func (b *paragraphParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
paragraph.go#L46: func (b *paragraphParser) Close(node ast.Node, reader text.Reader, pc Context) {
parser.go#L192: ClearDelimiters(bottom ast.Node)
parser.go#L338: func (p *parseContext) ClearDelimiters(bottom ast.Node) {
parser.go#L342: var c ast.Node
parser.go#L472: Parse(reader text.Reader, opts ...ParseOption) ast.Node
parser.go#L503: Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State)
parser.go#L515: Continue(node ast.Node, reader text.Reader, pc Context) State
parser.go#L518: Close(node ast.Node, reader text.Reader, pc Context)
parser.go#L543: Parse(parent ast.Node, block text.Reader, pc Context) ast.Node
parser.go#L550: CloseBlock(parent ast.Node, block text.Reader, pc Context)
parser.go#L625: Node ast.Node
parser.go#L825: func (p *parser) Parse(reader text.Reader, opts ...ParseOption) ast.Node {
parser.go#L863: p.walkBlock(root, func(node ast.Node) {
parser.go#L909: func (p *parser) openBlocks(parent ast.Node, blankLine bool, reader text.Reader, pc Context) blockOpenResult {
parser.go#L1032: func (p *parser) parseBlocks(parent ast.Node, reader text.Reader, pc Context) {
parser.go#L1111: func (p *parser) walkBlock(block ast.Node, cb func(node ast.Node)) {
parser.go#L1118: func (p *parser) parseBlock(block text.BlockReader, parent ast.Node, pc Context) {
parser.go#L1173: var inlineNode ast.Node
raw_html.go#L27: func (s *rawHTMLParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.Node {
raw_html.go#L59: func (s *rawHTMLParser) parseSingleLineRegexp(reg *regexp.Regexp, block text.Reader, pc Context) ast.Node {
raw_html.go#L71: func (s *rawHTMLParser) parseMultiLineRegexp(reg *regexp.Regexp, block text.Reader, pc Context) ast.Node {
setext_headings.go#L52: func (b *setextHeadingParser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
setext_headings.go#L76: func (b *setextHeadingParser) Continue(node ast.Node, reader text.Reader, pc Context) State {
setext_headings.go#L80: func (b *setextHeadingParser) Close(node ast.Node, reader text.Reader, pc Context) {
setext_headings.go#L94: next.(ast.Node).Lines().Unshift(segment)
thematic_break.go#L52: func (b *thematicBreakPraser) Open(parent ast.Node, reader text.Reader, pc Context) (ast.Node, State) {
thematic_break.go#L61: func (b *thematicBreakPraser) Continue(node ast.Node, reader text.Reader, pc Context) State {
thematic_break.go#L65: func (b *thematicBreakPraser) Close(node ast.Node, reader text.Reader, pc Context) {
github.com/yuin/goldmark/renderer
renderer.go#L73: type NodeRendererFunc func(writer util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error)
renderer.go#L90: Render(w io.Writer, source []byte, n ast.Node) error
renderer.go#L135: func (r *renderer) Render(w io.Writer, source []byte, n ast.Node) error {
renderer.go#L161: err := ast.Walk(n, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
github.com/yuin/goldmark/renderer/html
html.go#L189: func (r *Renderer) writeLines(w util.BufWriter, source []byte, n ast.Node) {
html.go#L219: func (r *Renderer) renderDocument(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L227: func (r *Renderer) renderHeading(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L249: func (r *Renderer) renderBlockquote(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L264: func (r *Renderer) renderCodeBlock(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L274: func (r *Renderer) renderFencedCodeBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L292: func (r *Renderer) renderHTMLBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L324: func (r *Renderer) renderList(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L353: func (r *Renderer) renderListItem(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L377: func (r *Renderer) renderParagraph(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L392: func (r *Renderer) renderTextBlock(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L394: if _, ok := n.NextSibling().(ast.Node); ok && n.FirstChild() != nil {
html.go#L410: func (r *Renderer) renderThematicBreak(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L439: func (r *Renderer) renderAutoLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L466: func (r *Renderer) renderCodeSpan(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L496: func (r *Renderer) renderEmphasis(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L517: func (r *Renderer) renderLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L558: func (r *Renderer) renderImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L586: func (r *Renderer) renderRawHTML(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L603: func (r *Renderer) renderText(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L626: func (r *Renderer) renderString(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
html.go#L648: func RenderAttributes(w util.BufWriter, node ast.Node, filter util.BytesFilter) {
github.com/yuin/goldmark-emoji
emoji.go#L233: func (s *emojiParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node {
emoji.go#L285: func (r *emojiHTMLRenderer) renderEmoji(w util.BufWriter, source []byte, n ast.Node, entering bool) (ast.WalkStatus, error) {
golang.org/x/pkgsite/internal/frontend
goldmark.go#L37: _ = ast.Walk(node, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L88: func (r *htmlRenderer) renderHeading(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L118: func (r *htmlRenderer) renderHTMLBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L147: func (r *htmlRenderer) renderRawHTML(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L230: err := ast.Walk(node, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L283: err := ast.Walk(node, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
styleguide.go#L151: func (r *guideRenderer) writeLines(w util.BufWriter, source []byte, n ast.Node) {
styleguide.go#L159: func (r *guideRenderer) writeEscapedLines(w util.BufWriter, source []byte, n ast.Node) {
styleguide.go#L169: func (r *guideRenderer) renderFencedCodeBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
golang.org/x/pkgsite/internal/postgres
goldmark.go#L31: _ = ast.Walk(node, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L70: func (r *HTMLRenderer) skipImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
goldmark.go#L77: func (r *HTMLRenderer) skipNode(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |