Parse Lark/Feishu Docx into Markdown
go get github.com/A11Might/lark_docx_md
package main
import (
"context"
"fmt"
"github.com/A11Might/lark_docx_md"
lark "github.com/larksuite/oapi-sdk-go/v3"
)
func main() {
processor := lark_docx_md.NewDocxMarkdownProcessor(
lark.NewClient("appId", "appSecret"),
"documentType", "documentToken",
lark_docx_md.DownloadStatic("static", "static"),
lark_docx_md.UseGhCalloutStyle(),
)
md, err := processor.DocxMarkdown(context.Background())
if err != nil {
fmt.Println(err)
return
}
fmt.Println(md)
}
Origin lark docx:docx
Parse into Markdown:md
A11Might/lark-docx-readme: Use lark docx update github README.md
Inspired by chyroc/lark_docs_md