Documentation ¶
Overview ¶
Package asciidoctor is the Go module to parse the AsciiDoc markup. Its currently support converting the asciidoc to HTML5.
Index ¶
Constants ¶
View Source
const ( DocAttrAuthor = `author` // May contain the first author full name only. DocAttrAuthorNames = `author_names` // List of author full names, separated by comma. DocAttrDescription = `description` DocAttrGenerator = `generator` DocAttrKeywords = `keywords` )
List of document attribute.
View Source
const (
// Version of this module.
Version = `0.6.0`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { FirstName string MiddleName string LastName string Initials string Email string }
Author of document.
type Document ¶
type Document struct { Attributes DocumentAttribute Revision Revision Title DocumentTitle Authors []*Author TOCLevel int // contains filtered or unexported fields }
Document represent content of asciidoc that has been parsed.
func (*Document) ToHTMLBody ¶
ToHTMLBody convert the Document object into HTML with body only, this is including header, content, and footer.
type DocumentAttribute ¶ added in v0.6.0
DocumentAttribute contains the mapping of global attribute keys in the headers with its value.
type DocumentTitle ¶
DocumentTitle contains the main and optional sub title.
func (*DocumentTitle) String ¶
func (docTitle *DocumentTitle) String() string
String return the combination of main and subtitle separated by colon or meta `title-separator` value.
Source Files ¶
- anchor.go
- asciidoctor.go
- attribute_class.go
- author.go
- cell_format.go
- column_format.go
- const.go
- document.go
- document_attribute.go
- document_parser.go
- document_title.go
- element.go
- element_attribute.go
- element_include.go
- element_table.go
- html_backend.go
- html_template.go
- inline_parser.go
- inline_parser_state.go
- macro.go
- parser.go
- revision.go
- section_counters.go
- table_cell.go
- table_parser.go
- table_row.go
Click to show internal directories.
Click to hide internal directories.