Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HugoParser ¶
type HugoParser struct {
}
HugoParser parses Hugo-style shortcodes ({{< name param >}}).
func (*HugoParser) Extract ¶
func (p *HugoParser) Extract(content string) (string, []interfaces.ParsedShortcode, error)
Extract replaces shortcodes with placeholders and returns both the transformed content and extracted definitions.
func (*HugoParser) Parse ¶
func (p *HugoParser) Parse(content string) ([]interfaces.ParsedShortcode, error)
Parse returns the list of parsed shortcodes in the content.
type WordPressPreprocessor ¶
type WordPressPreprocessor struct{}
WordPressPreprocessor converts WordPress-style shortcodes to Hugo syntax.
func NewWordPressPreprocessor ¶
func NewWordPressPreprocessor() *WordPressPreprocessor
NewWordPressPreprocessor constructs a preprocessor.
func (*WordPressPreprocessor) Process ¶
func (p *WordPressPreprocessor) Process(content string) string
Process rewrites bracket shortcodes into Hugo-style equivalents.
Click to show internal directories.
Click to hide internal directories.