A renderer implementation, that renders vBulletin code of the AST generated by Blackfriday.
package main
import (
"os"
"log"
"github.com/Nols1000/blackfriday-vbcode"
"gopkg.in/russross/blackfriday.v2"
"io/ioutil"
)
func main() {
renderer := blackfriday_vbcode.NewVBulletinRenderer()
var err error
var input []byte
if input, err = ioutil.ReadFile(os.Args[0]); err != nil {
log.Fatalf( "Error reading from", os.Args[0], ":", err)
os.Exit(-1)
}
var output []byte
output = blackfriday.Run(input, blackfriday.WithRenderer(renderer), blackfriday.WithExtensions(blackfriday.CommonExtensions))
log.Printf("Output: %s", string(output))
}
go get github.com/Nols1000/blackfriday-vbcode
- Go 1.11 - An open source programming language that makes it easy to build simple, reliable, and efficient software.
- Blackfriday - A markdown processor for Go
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Nils-Börge Margotti - Initial work - Nols1000
See also the list of contributors who participated in this project.
Blackfriday is distributed under the Simplified BSD License - see the LICENSE.txt file for details.
This project (Blackfriday vBulletin Code) is licensed under the MIT License - see the LICENSE.md file for details.