extensions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_FILE_UPLOAD = 1 * GB
View Source
const MIN_SEARCH_KEYWORD = 3
View Source
const STARRED_PAGES = "starred"

Variables

View Source
var (
	IMAGES_EXTENSIONS = []string{".jpg", ".jpeg", ".png", ".gif", ".svg", ".webp"}
	VIDEOS_EXTENSIONS = []string{".webm"}
	AUDIO_EXTENSIONS  = []string{".wave", ".ogg", ".opus", ".mp3"}
)
View Source
var KindHashTag = ast.NewNodeKind("Hashtag")
View Source
var KindPageLink = ast.NewNodeKind("PageLink")

Functions

func UpdatePagesList

func UpdatePagesList(_ *Page) (err error)

func VersionMeta

func VersionMeta(p *Page, _ Request) (t template.HTML)

func WriteVersion

func WriteVersion(p *Page) error

Types

type Autolink struct{}

func (*Autolink) RegisterFuncs

func (h *Autolink) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

type AutolinkPages

type AutolinkPages struct{}

func (*AutolinkPages) Parse

func (s *AutolinkPages) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node

func (*AutolinkPages) RegisterFuncs

func (h *AutolinkPages) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

func (*AutolinkPages) Trigger

func (_ *AutolinkPages) Trigger() []byte

type HashTag

type HashTag struct {
	ast.BaseInline
	// contains filtered or unexported fields
}

func (*HashTag) Dump

func (h *HashTag) Dump(source []byte, level int)

func (*HashTag) Kind

func (h *HashTag) Kind() ast.NodeKind

func (*HashTag) Parse

func (h *HashTag) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node

func (*HashTag) RegisterFuncs

func (h *HashTag) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

func (*HashTag) Trigger

func (h *HashTag) Trigger() []byte

type Meta

type Meta struct {
	URL         string
	Title       string
	Description string
	Image       string
}
type PageLink struct {
	ast.BaseInline
	// contains filtered or unexported fields
}

func (*PageLink) Dump

func (p *PageLink) Dump(source []byte, level int)

func (*PageLink) Kind

func (_ *PageLink) Kind() ast.NodeKind

Jump to

Keyboard shortcuts

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