feishu2md icon indicating copy to clipboard operation
feishu2md copied to clipboard

代码块转换有些问题

Open sko00o opened this issue 2 years ago • 0 comments

旧版 API

原始文档截图:

image

拉取文档:

feishu2md https://unlz98sgz3.feishu.cn/docs/doccnd99W0Ky4j4JhPhE9RsZlug

转换后的 Markdown:

# feishu2md code block test (docs)

Paragraph at the beginning.

Paragraph before code block.

```Go
package main



func main() {

    print("hello world")

}

```

Paragraph after code block.

Paragraph at the end.

存在的问题:

  • 代码块中多出了一些空行
  • 代码块的语言声明建议全小写字母

新版 API

原始文档截图:

image

拉取文档:

feishu2md https://unlz98sgz3.feishu.cn/docx/doxcnyTd6n5fRN2mOdAGbU1wcxd

转换后的 Markdown:

# feishu2md code block test (docx)

Paragraph at the beginning.

Paragraph before code block.

```
package main

func main() {
    print("hello world")
}

```

Paragraph after code block.

Paragraph at the end.

存在的问题:

  • 代码块结尾多了一空行
  • 代码块缺少了语言声明

sko00o avatar Aug 28 '22 14:08 sko00o