feat: default markdown gh mode is markdown
parent
a442096100
commit
70025d6cd4
4
main.go
4
main.go
|
@ -89,9 +89,7 @@ func main() {
|
||||||
return fmt.Errorf("os: failed to read file %s: %w", mdFilename, err)
|
return fmt.Errorf("os: failed to read file %s: %w", mdFilename, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ghMarkdown, _, err := ghClient.Markdown(ctx, string(mdFileBytes), &github.MarkdownOptions{
|
ghMarkdown, _, err := ghClient.Markdown(ctx, string(mdFileBytes), nil)
|
||||||
Mode: "markdown",
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("github: failed to markdown: %w", err)
|
return fmt.Errorf("github: failed to markdown: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue