package markup

import "github.com/gohugoio/hugo/markup"

Package markup contains the markup handling (e.g. Markdown).

Index

Functions

func ResolveMarkup

func ResolveMarkup(s string) string

ResolveMarkup returns the markup type.

Types

type ConverterProvider

type ConverterProvider interface {
	Get(name string) converter.Provider
	IsGoldmark(name string) bool
	// Default() converter.Provider
	GetMarkupConfig() markup_config.Config
	GetHighlighter() highlight.Highlighter
}

func NewConverterProvider

func NewConverterProvider(cfg converter.ProviderConfig) (ConverterProvider, error)

Source Files

markup.go

Directories

PathSynopsis
markup/asciidocextPackage asciidocext converts AsciiDoc to HTML using Asciidoctor external binary.
markup/asciidocext/asciidocext_configPackage asciidocext_config holds asciidoc related configuration.
markup/asciidocext/internal
markup/blackfridayPackage blackfriday holds some compatibility functions for the old Blackfriday v1 Markdown engine.
markup/converter
markup/converter/hooks
markup/goldmarkPackage goldmark converts Markdown to HTML using Goldmark.
markup/goldmark/blockquotes
markup/goldmark/codeblocks
markup/goldmark/goldmark_configPackage goldmark_config holds Goldmark related configuration.
markup/goldmark/hugocontext
markup/goldmark/images
markup/goldmark/internal
markup/goldmark/passthrough
markup/goldmark/tables
markup/highlightPackage highlight provides code highlighting.
markup/highlight/chromalexers
markup/internal
markup/markup_config
markup/orgPackage org converts Emacs Org-Mode to HTML.
markup/pandocPackage pandoc converts content to HTML using Pandoc as an external helper.
markup/rstPackage rst converts content to HTML using the RST external helper.
markup/tableofcontents
Version
v0.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
13 hours ago

Tools for package owners.