filters

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreviewTextSel = ".mcnPreviewText"
)

Variables

View Source
var (
	PostFilters []FilterHook
)
View Source
var (
	RemoveSelectors = []string{"style", ".footerContainer", "#awesomewrap", "#templatePreheader", "img", "head"}
)

Functions

func RegisterPostFilterHook

func RegisterPostFilterHook(hook FilterHook)

func RunPostFilterHooks

func RunPostFilterHooks(feed feeds.Feed, post *posts.Post)

Types

type FilterHook

type FilterHook func(feed feeds.Feed, post *posts.Post) error

Jump to

Keyboard shortcuts

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