Documentation ¶
Overview ¶
Package markdown provides a method for working with and parsing markdown documents
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
GrabAuthors bool
)
GrabAuthors - do we want to collect authors?
Functions ¶
func Paragraphify ¶
Paragraphify takes in a .puml file contents and returns a formatted HTML page as a string currently unused
func URLConverter ¶
URLConverter function for images to be loaded in to confluence page (they must be in same directory as markdown to work) this function replaces local url paths in html img links with a confluence path for folder page attachments on parent page
Types ¶
type FileContents ¶
FileContents contains information from a file after being parsed from markdown. `Metadata` in the format of a `map[string]interface{}` this can contain title, description, slug etc. `Body` a `[]byte` that contains the resulting HTML after parsing the markdown and converting to HTML using Goldmark.
func ParseMarkdown ¶
func ParseMarkdown(rootID int, content []byte, isIndex bool, pages map[string]string, path, abs, fileName string) (*FileContents, error)
ParseMarkdown function uses external parsing library to grab markdown contents and return a filecontents object