Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTitle = "Untitled"
DefaultTitle the default title to render when the document has none
Variables ¶
This section is empty.
Functions ¶
func EscapeString ¶
EscapeString is like html5.Escape func except but bypasses a few replacements. It is a bit more conservative.
Types ¶
type Attribution ¶
Attribution a document block attribution
type RenderLinesConfig ¶
type RenderLinesConfig struct {
// contains filtered or unexported fields
}
RenderLinesConfig the config to use when rendering paragraph lines
type RenderLinesOption ¶
type RenderLinesOption func(c *RenderLinesConfig)
RenderLinesOption an option to configure the rendering
type Renderer ¶
type Renderer interface { // Render renders a document to the given output stream. Render(ctx *renderer.Context, doc types.Document, output io.Writer) (types.Metadata, error) // SetFunction sets the named function. SetFunction(name string, fn interface{}) // Templates returns the Templates used by this Renderer. // It cannot be altered on a given Renderer, since the old // templates may have already been parsed. Templates() Templates }
Renderer implements the backend render interface by using sgml.
type Templates ¶
type Templates struct { AdmonitionBlock string AdmonitionParagraph string Article string ArticleHeader string BlankLine string BlockImage string BoldText string CalloutList string CalloutListItem string CalloutRef string DelimitedBlockParagraph string DocumentDetails string DocumentAuthorDetails string ExampleBlock string ExternalCrossReference string FencedBlock string Footnote string FootnoteItem string FootnoteRef string FootnoteRefPlain string Footnotes string IconFont string IconImage string IconText string InlineIcon string InlineImage string InternalCrossReference string InvalidFootnote string ItalicText string LabeledList string LabeledListItem string LabeledListHorizontal string LabeledListHorizontalItem string LineBreak string Link string ListingBlock string LiteralBlock string ManpageHeader string ManpageNameParagraph string MarkdownQuoteBlock string MarkedText string MonospaceText string OrderedList string OrderedListItem string Paragraph string PassthroughBlock string Preamble string PredefinedAttribute string QAndAList string QAndAListItem string QuoteBlock string QuoteParagraph string SectionContent string SectionHeader string SidebarBlock string SourceBlock string SpecialCharacter string StringElement string SubscriptText string SuperscriptText string Table string TableBody string TableCell string TableHeader string TableHeaderCell string TableRow string ThematicBreak string TocEntry string TocRoot string TocSection string UnorderedList string UnorderedListItem string VerbatimLine string VerseBlock string VerseParagraph string }
Templates represents all the templates we use.
Source Files ¶
- aliases.go
- attribution.go
- blank_line.go
- callout_list.go
- cross_reference.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_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_elements.go
- labeled_list.go
- link.go
- literal_blocks.go
- ordered_list.go
- paragraph.go
- passthrough.go
- predefined_attribute.go
- quoted_text.go
- renderer.go
- section.go
- sgml_renderer.go
- special_character.go
- string.go
- table.go
- table_of_contents.go
- templates.go
- unordered_list.go
- user_macro.go
- verbatim_line.go
Click to show internal directories.
Click to hide internal directories.