Documentation ¶
Index ¶
- Constants
- func PreRenderMarkdown(content string) (parsedBytes []byte)
- func RenderExcerpt(content string) (excerpt string)
- func RenderMarkdown(content string) (text string)
- type CDocument
- type CFeature
- func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
- func (f *CFeature) Extensions() (extensions []string)
- func (f *CFeature) IndexDocument(pg feature.Page) (out interface{}, err error)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Label() (label string)
- func (f *CFeature) Make() Feature
- func (f *CFeature) Name() (name string)
- func (f *CFeature) NewDocumentMapping(tag language.Tag) (doctype, analyzer string, dm *mapping.DocumentMapping)
- func (f *CFeature) Prepare(ctx context.Context, content string) (out context.Context, err error)
- func (f *CFeature) Process(ctx context.Context, content string) (html template.HTML, redirect string, err error)
- func (f *CFeature) SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)
- func (f *CFeature) SetMore(enabled bool) MakeFeature
- type Document
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "pages-formats-md"
Variables ¶
This section is empty.
Functions ¶
func PreRenderMarkdown ¶ added in v0.5.8
func RenderExcerpt ¶ added in v0.5.8
func RenderMarkdown ¶
Types ¶
type CDocument ¶
type CDocument struct { search.CDocument Links []string `json:"links"` Headings []string `json:"headings"` Footnotes []string `json:"footnotes"` }
func NewMarkdownDocument ¶
func (*CDocument) AddFootnote ¶
func (*CDocument) AddHeading ¶
type CFeature ¶
func (*CFeature) AddSearchDocumentMapping ¶
func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)
func (*CFeature) Extensions ¶
func (*CFeature) IndexDocument ¶
func (*CFeature) NewDocumentMapping ¶
func (*CFeature) SearchDocumentMapping ¶
func (*CFeature) SetMore ¶ added in v0.5.8
func (f *CFeature) SetMore(enabled bool) MakeFeature
type MakeFeature ¶
type MakeFeature interface { SetMore(enabled bool) MakeFeature Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶ added in v0.4.0
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.