Documentation ¶
Index ¶
- func IsReadmeFile(name string) bool
- func ReadmeFileType(name string) (string, bool)
- func RegisterParser(parser Parser)
- func Render(filename string, rawBytes []byte, urlPrefix string, metas map[string]string) []byte
- func RenderString(filename string, raw, urlPrefix string, metas map[string]string) string
- func RenderWiki(filename string, rawBytes []byte, urlPrefix string, metas map[string]string) string
- func Type(filename string) string
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadmeFile ¶
IsReadmeFile reports whether name looks like a README file based on its name.
func ReadmeFileType ¶
ReadmeFileType reports whether name looks like a README file based on its name and find the parser via its ext name
func RegisterParser ¶
func RegisterParser(parser Parser)
RegisterParser registers a new markup file parser
func RenderString ¶
RenderString renders Markdown to HTML with special links and returns string type.
func RenderWiki ¶
RenderWiki renders markdown wiki page to HTML and return HTML string
Types ¶
Click to show internal directories.
Click to hide internal directories.