feat: default markdown gh mode is markdown

main
sudo pacman -Syu 2023-08-15 15:07:25 +07:00
parent a442096100
commit 70025d6cd4
1 changed files with 1 additions and 3 deletions

View File

@ -89,9 +89,7 @@ func main() {
return fmt.Errorf("os: failed to read file %s: %w", mdFilename, err)
}
ghMarkdown, _, err := ghClient.Markdown(ctx, string(mdFileBytes), &github.MarkdownOptions{
Mode: "markdown",
})
ghMarkdown, _, err := ghClient.Markdown(ctx, string(mdFileBytes), nil)
if err != nil {
return fmt.Errorf("github: failed to markdown: %w", err)
}