From 0217ee703a2dabbf12dcecd7d48a9e6cece6abee Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 22 Jan 2025 22:42:30 +0100 Subject: [PATCH] use commonmark --- cmd/backend/docx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/backend/docx.go b/cmd/backend/docx.go index 37f895c..14fd2d9 100644 --- a/cmd/backend/docx.go +++ b/cmd/backend/docx.go @@ -21,7 +21,7 @@ func ConvertToMarkdown(c *Config, filename string) ([]byte, error) { defer os.RemoveAll(tmpDir) articleFileName := filepath.Join(os.TempDir(), fmt.Sprint(uuid.New(), ".md")) - cmd := exec.Command("pandoc", "-s", "-f", "docx", "-t", "commonmark_x", "-o", articleFileName, "--extract-media", tmpDir, filename) // TODO: Is writing to a file necessary? + cmd := exec.Command("pandoc", "-s", "-f", "docx", "-t", "commonmark", "-o", articleFileName, "--extract-media", tmpDir, filename) // TODO: Is writing to a file necessary? cmd.Stderr = &stderr if err = cmd.Run(); err != nil { return nil, fmt.Errorf("error converting docx to markdown: %v: %v", err, stderr.String())