Documentation ¶
Index ¶
- Constants
- func Render(doc *types.Document, config *configuration.Configuration, output io.Writer, ...) (types.Metadata, error)
- func RenderParagraphElements(p *types.Paragraph) (string, error)
- func RenderPlainText(element interface{}, opts ...Option) (string, error)
- type Attribution
- type Option
- type Templates
Constants ¶
View Source
const DefaultTitle = "Untitled"
DefaultTitle the default title to render when the document has none
Variables ¶
This section is empty.
Functions ¶
func Render ¶ added in v0.8.0
func Render(doc *types.Document, config *configuration.Configuration, output io.Writer, tmpls Templates) (types.Metadata, error)
func RenderParagraphElements ¶ added in v0.8.0
func RenderPlainText ¶ added in v0.8.0
Types ¶
type Attribution ¶
Attribution a document block attribution
type Option ¶ added in v0.8.0
type Option func(*plaintextRenderer)
func WithoutEscape ¶ added in v0.8.0
func WithoutEscape() Option
type Templates ¶
type Templates struct { AdmonitionBlock string AdmonitionParagraph string Article string ArticleHeader string BlockImage string BoldText string CalloutList string CalloutListElement string CalloutRef string EmbeddedParagraph string DocumentDetails string DocumentAuthorDetails string ExampleBlock string ExternalCrossReference string FencedBlock string Footnote string FootnoteElement string FootnoteRef string Footnotes string IconFont string IconImage string IconText string InlineButton string InlineIcon string InlineImage string InlineMenu string InternalCrossReference string InvalidFootnote string ItalicText string LabeledList string LabeledListElement string LabeledListHorizontal string LabeledListHorizontalElement string LineBreak string Link string ListingBlock string LiteralBlock string ManpageHeader string ManpageNameParagraph string MarkdownQuoteBlock string MarkedText string MonospaceText string OpenBlock string OrderedList string OrderedListElement string Paragraph string PassthroughBlock string Preamble string QAndAList string QAndAListElement string QuoteBlock string QuoteParagraph string SectionContent string SectionTitle string SidebarBlock string SourceBlock string SubscriptText string SuperscriptText string Table string TableBody string TableCell string TableCellBlock string TableHeader string TableHeaderCell string TableRow string ThematicBreak string TocEntry string TocRoot string TocSection string UnorderedList string UnorderedListElement string VerseBlock string VerseParagraph string }
Templates represents all the templates we use. go:generate
Source Files ¶
- attribution.go
- blank_line.go
- context.go
- cross_reference.go
- delimited_block.go
- delimited_block_admonition.go
- delimited_block_discard_lines.go
- delimited_block_example.go
- delimited_block_fenced.go
- delimited_block_listing.go
- delimited_block_markdown_quote.go
- delimited_block_open.go
- delimited_block_passthrough.go
- delimited_block_quote.go
- delimited_block_sidebar.go
- delimited_block_source.go
- delimited_block_verse.go
- document_details.go
- element_id.go
- element_role.go
- element_style.go
- elements.go
- footnote_reference.go
- html_escape.go
- icon.go
- image.go
- index_term.go
- inline_button.go
- inline_elements.go
- inline_menu.go
- link.go
- list.go
- literal_blocks.go
- paragraph.go
- passthrough.go
- preamble.go
- predefined_attribute.go
- quoted_text.go
- render_plain_text.go
- section.go
- sgml.go
- sgml_renderer.go
- special_character.go
- string.go
- symbol.go
- table.go
- table_of_contents.go
- templates.go
- user_macro.go
Click to show internal directories.
Click to hide internal directories.