Documentation ¶
Index ¶
- func AlignHeadings(text string) string
- func CleanCodeBlocks(md string) string
- func ExtractQuote(md string) (string, string)
- func IsHeading(line string) (bool, string, int)
- func ReplaceAsciidocCharacterSubstitutions(md string) string
- func Slug(values ...string) string
- func StripComment(body string) (string, string)
- func StripEmphasis(text string) string
- func StripTopHeading(md string) string
- func ToHTML(md string) string
- func ToInlineHTML(md string) string
- func ToMarkdown(markdownText string) string
- func ToText(md string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignHeadings ¶
AlignHeadings unindents headings.
Ex: (### Note: Blabla)
blabla #### Blablabla blablabla ##### Blablablabla blablablabla
Becomes:
blabla ## Blablabla blablabla ### Blablablabla blablablabla
func CleanCodeBlocks ¶
CleanCodeBlocks removes code blocks by injecting blank lines to preserve line numbers.
func ExtractQuote ¶
ExtractQuote extracts a quote from a note content (support basic and sugar syntax)
func ReplaceAsciidocCharacterSubstitutions ¶
ReplaceAsciidocCharacterSubstitutions replaces Asciidoc special character sequences by their equivalent in Unicode.
func StripComment ¶
StripComment extracts the optional user comment from a note body.
func StripEmphasis ¶
StripEmphasis remove Markdown emphasis characters.
func ToInlineHTML ¶
func ToMarkdown ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.