 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func IsMarkdownFile(name string) bool
- func Render(rawBytes []byte, urlPrefix string, metas map[string]string) []byte
- func RenderRaw(body []byte, urlPrefix string, wikiMarkdown bool) []byte
- func RenderString(raw, urlPrefix string, metas map[string]string) string
- func RenderWiki(rawBytes []byte, urlPrefix string, metas map[string]string) string
- type Parser
- type Renderer
- func (r *Renderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
- func (r *Renderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
- func (r *Renderer) List(out *bytes.Buffer, text func() bool, flags int)
- func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int)
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	// MarkupName describes markup's name
	MarkupName = "markdown"
)
    Functions ¶
func IsMarkdownFile ¶
IsMarkdownFile reports whether name looks like a Markdown file based on its extension.
func RenderString ¶
RenderString renders Markdown to HTML with special links and returns string type.
Types ¶
type Renderer ¶
type Renderer struct {
	blackfriday.Renderer
	URLPrefix string
	IsWiki    bool
}
    Renderer is a extended version of underlying render object.
func (*Renderer) Image ¶
Image defines how images should be processed to produce corresponding HTML elements.
func (*Renderer) Link ¶
Link defines how formal links should be processed to produce corresponding HTML elements.
 Click to show internal directories. 
   Click to hide internal directories.