linkcard

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindLinkCardBlock = gast.NewNodeKind("LinkCardBlock")

Functions

func NewParser

func NewParser() parser.BlockParser

func NewRenderer

func NewRenderer(blockedSchemes []string, lr *linkrender.Renderer) renderer.NodeRenderer

Types

type Extension

type Extension struct {
	BlockedSchemes []string
	LinkRenderer   *linkrender.Renderer
}

func (*Extension) Extend

func (e *Extension) Extend(m goldmark.Markdown)

type LinkCardBlock

type LinkCardBlock struct {
	gast.BaseBlock
	Title       string
	Href        string
	Description string
	Icon        string
	Image       string
	NewTab      *bool
}

func (*LinkCardBlock) Dump

func (n *LinkCardBlock) Dump(source []byte, level int)

func (*LinkCardBlock) Kind

func (n *LinkCardBlock) Kind() gast.NodeKind

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL