Documentation ¶
Index ¶
- Constants
- func ParseHeader(text string, doc *ADoc)
- type ADoc
- type BlockElement
- type CodeBlock
- type CodeText
- type EmpText
- type InlineElement
- type Kind
- type Language
- type Link
- type List
- type ListItem
- type Paragraph
- type PlainText
- type StrongEmpText
- type StrongText
- type SubSubTitle
- type SubTitle
- type Tag
Constants ¶
View Source
const ( KIND_NOTE = Kind("note") KIND_PRIVATE_NOTE = Kind("private_note") KIND_WORK_NOTE = Kind("work_note") KIND_VKV = Kind("vkv") KIND_STORY = Kind("story") KIND_SNIPPET = Kind("snippet") KIND_ESSAY = Kind("essay") KIND_ARTICLE = Kind("article") KIND_TUTORIAL = Kind("tutorial") KIND_UNKNOWN = Kind("unknown") )
View Source
const ( LANGUAGE_EN = Language("en") LANGUAGE_NL = Language("nl") LANGUAGE_UNKNOWN = Language("unknown") )
View Source
const ( TITLE_PREFIX = "= " SUBTITLE_PREFIX = "== " SUBSUBTITLE_PREFIX = "=== " PARAGRAPH_SEPARATOR = "\n\n" LINE_SEPARATOR = "\n" CODE_PREFIX = "----\n" CODE_SUFFIX = "\n----" LISTITEM_PREFIX = "* " )
Variables ¶
This section is empty.
Functions ¶
func ParseHeader ¶
Types ¶
type ADoc ¶
type BlockElement ¶
type BlockElement interface {
Text() string
}
type InlineElement ¶
type InlineElement interface {
Text() string
}
func ParseInline ¶
func ParseInline(text string) []InlineElement
type ListItem ¶
type ListItem []InlineElement
type Paragraph ¶
type Paragraph []InlineElement
type StrongEmpText ¶
type StrongEmpText string
func (StrongEmpText) Text ¶
func (set StrongEmpText) Text() string
type StrongText ¶
type StrongText string
func (StrongText) Text ¶
func (st StrongText) Text() string
type SubSubTitle ¶
type SubSubTitle string
func (SubSubTitle) Text ¶
func (st SubSubTitle) Text() string
Click to show internal directories.
Click to hide internal directories.