entity

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MDProvider contentspec.ProviderProvider = provide{}

MDProvider is the package entry point.

Functions

This section is empty.

Types

type ContentSpec

type ContentSpec struct {
	Converters contentspec.ConverterRegistry
	Cfg        config.Provider
}

func (*ContentSpec) GetContentProvider

func (c *ContentSpec) GetContentProvider(name string) contentspec.Provider

func (*ContentSpec) ResolveMarkup

func (c *ContentSpec) ResolveMarkup(in string) string

type ConverterProvider

type ConverterProvider struct {
	// contains filtered or unexported fields
}

func (ConverterProvider) Name

func (n ConverterProvider) Name() string

func (ConverterProvider) New

type ConverterRegistry

type ConverterRegistry struct {
	// Maps name (md, markdown, goldmark etc.) to a converter provider.
	// Note that this is also used for aliasing, so the same converter
	// may be registered multiple times.
	// All names are lower case.
	Converters map[string]contentspec.Provider
}

func (*ConverterRegistry) Get

Jump to

Keyboard shortcuts

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