stand114514 / automd

一个将网页内容下载为Markdown的浏览器插件。
MIT License
23 stars 1 forks source link

For some code content, you need to adjust the format of the processing #8

Open DerickIT opened 4 weeks ago

DerickIT commented 4 weeks ago

原文: image https://victoriametrics.com/blog/go-map/?ref=dailydev

下载下来的格式


    func main() {
        a := map[string]int{"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6}
        b := map[string]int{"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6}

        for i := range a {
            print(i, " ")
        }
        println()

        for i := range b {
            print(i, " ")
        }
    }

    // Output:
    // a b c d e f
    // c d e f a b

Go

Copy
DerickIT commented 4 weeks ago

支持配置图床链接,将网页中的图片统一上传到图床

stand114514 commented 3 weeks ago

解析是依靠Turndown这个库,好像是可以自定义一些东西,没去专门研究。另外,要加图床挺麻烦的,不咋好写请求,实在是没啥时间。