package main

import (
	"github.com/russross/blackfriday/v2"
	"io/ioutil"
)

// Takes the path to a markdown file and outputs the processed HTML in a string
func processMarkdown(path string) (md string, err error) {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		return
	}

	md = string(blackfriday.Run(data))
	return
}