2018-10-22 10:48:29 -07:00
|
|
|
// Package blackfriday is a markdown processor.
|
2018-08-06 12:47:05 -07:00
|
|
|
//
|
2018-10-22 10:48:29 -07:00
|
|
|
// It translates plain text with simple formatting rules into an AST, which can
|
|
|
|
// then be further processed to HTML (provided by Blackfriday itself) or other
|
|
|
|
// formats (provided by the community).
|
2018-08-06 12:47:05 -07:00
|
|
|
//
|
2018-10-22 10:48:29 -07:00
|
|
|
// The simplest way to invoke Blackfriday is to call the Run function. It will
|
|
|
|
// take a text input and produce a text output in HTML (or other format).
|
2018-08-06 12:47:05 -07:00
|
|
|
//
|
2018-10-22 10:48:29 -07:00
|
|
|
// A slightly more sophisticated way to use Blackfriday is to create a Markdown
|
|
|
|
// processor and to call Parse, which returns a syntax tree for the input
|
|
|
|
// document. You can leverage Blackfriday's parsing for content extraction from
|
|
|
|
// markdown documents. You can assign a custom renderer and set various options
|
|
|
|
// to the Markdown processor.
|
2018-08-06 12:47:05 -07:00
|
|
|
//
|
2018-10-22 10:48:29 -07:00
|
|
|
// If you're interested in calling Blackfriday from command line, see
|
|
|
|
// https://github.com/russross/blackfriday-tool.
|
2018-08-06 12:47:05 -07:00
|
|
|
package blackfriday
|