goorgeous – github.com/chaseadamsio/goorgeous Index | Files

package goorgeous

import "github.com/chaseadamsio/goorgeous"

Index

Functions

func ExtractOrgHeaders

func ExtractOrgHeaders(r *bufio.Reader) (fm []byte, err error)

ExtractOrgHeaders finds and returns all of the headers from a bufio.Reader and returns them as their own byte slice

func IsKeyword

func IsKeyword(data []byte) bool

Elements ~~ Keywords

func NewParser

func NewParser(renderer blackfriday.Renderer) *parser

NewParser returns a new parser with the inlineCallbacks required for org content

func Org

func Org(input []byte, renderer blackfriday.Renderer) []byte

Org is a convenience name for OrgOptions

func OrgCommon

func OrgCommon(input []byte) []byte

OrgCommon is the easiest way to parse a byte slice of org content and makes assumptions that the caller wants to use blackfriday's HTMLRenderer with XHTML

func OrgHeaders

func OrgHeaders(input []byte) (map[string]interface{}, error)

OrgHeaders find all of the headers from a byte slice and returns them as a map of string interface

func OrgOptions

func OrgOptions(input []byte, renderer blackfriday.Renderer) []byte

OrgOptions takes an org content byte slice and a renderer to use

Source Files

goorgeous.go header.go

Version
v2.0.0+incompatible (latest)
Published
Oct 16, 2017
Platform
darwin/amd64
Imports
6 packages
Last checked
now

Tools for package owners.