Add export to html (markdown conversion) function
This commit is contained in:
parent
e407d95649
commit
fc301b48ef
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/adlio/trello"
|
"github.com/adlio/trello"
|
||||||
// "github.com/davecgh/go-spew/spew"
|
// "github.com/davecgh/go-spew/spew"
|
||||||
|
|
||||||
|
"gopkg.in/russross/blackfriday.v2"
|
||||||
"log"
|
"log"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
@ -112,6 +114,12 @@ func (board *TrelloBoard) ExportToMarkdown() string {
|
||||||
return markdown.String()
|
return markdown.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (board *TrelloBoard) ExportToHtml() string {
|
||||||
|
markdown := board.ExportToMarkdown()
|
||||||
|
html := blackfriday.Run([]byte(markdown))
|
||||||
|
return string(html)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
func RunTaskell(boardUrl string) {
|
func RunTaskell(boardUrl string) {
|
||||||
cmd := fmt.Sprintf("taskell -t %s -", boardUrl)
|
cmd := fmt.Sprintf("taskell -t %s -", boardUrl)
|
||||||
|
|
Loading…
Reference in a new issue