Skip to content

A renderer implementation, that renders vBulletin code of the ast generated by Blackfriday v2 ( https://github.com/russross/blackfriday.v2 ).

License

Notifications You must be signed in to change notification settings

Nols1000/blackfriday-vbcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blackfriday vBulletin Code

A renderer implementation, that renders vBulletin code of the AST generated by Blackfriday.

Getting Started

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))
}

Prerequisites

Installing

go get github.com/Nols1000/blackfriday-vbcode

Built With

  • 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

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Nils-Börge Margotti - Initial work - Nols1000

See also the list of contributors who participated in this project.

License

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.

About

A renderer implementation, that renders vBulletin code of the ast generated by Blackfriday v2 ( https://github.com/russross/blackfriday.v2 ).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages