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 ¶
func (n ConverterProvider) New(ctx contentspec.DocumentContext) (contentspec.Converter, error)
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 ¶
func (r *ConverterRegistry) Get(name string) contentspec.Provider
Click to show internal directories.
Click to hide internal directories.