Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

745 B
Raw Blame
package ast

import gast "github.com/yuin/goldmark/ast"

// GFMEmailNode represents a written extended GFM email autolink.
type GFMEmailNode struct {
	gast.BaseInline

	// Source is the exact Markdown source spelling.
	Source []byte
	// Address is the decoded email address used by the rendered link.
	Address []byte
}

// KindGFMEmail is the NodeKind for GFMEmailNode.
var KindGFMEmail = gast.NewNodeKind("GFMEmail")

// Kind returns KindGFMEmail.
func (*GFMEmailNode) Kind() gast.NodeKind {
	return KindGFMEmail
}

// Dump implements Node.Dump for debugging.
func (n *GFMEmailNode) Dump(source []byte, level int) {
	gast.DumpHelper(n, source, level, map[string]string{
		"Address": string(n.Address),
		"Source":  string(n.Source),
	}, nil)
}