├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md ├── dependabot.yml └── workflows │ └── go.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── commonmark.go ├── commonmark_test.go ├── escape └── escape.go ├── examples ├── add_rules │ └── main.go ├── custom_tag │ └── main.go ├── escaping │ └── main.go ├── github_flavored │ └── main.go ├── goquery │ └── main.go └── options │ └── main.go ├── from.go ├── from_test.go ├── go.mod ├── go.sum ├── logo_five_years.png ├── markdown.go ├── markdown_test.go ├── plugin ├── confluence_attachment_block.go ├── confluence_code_block.go ├── frontmatter.go ├── gfm.go ├── movefrontmatter.go ├── plugin_test.go ├── strikethrough.go ├── table.go ├── task_list.go ├── vimeo.go └── youtube.go ├── plugin_test.go ├── testdata ├── README.md ├── TestCommonmark │ ├── blockquote │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── bold │ │ ├── goldmark.golden │ │ ├── input.html │ │ ├── output.asterisks.golden │ │ └── output.underscores.golden │ ├── br_element │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── heading │ │ ├── goldmark.golden │ │ ├── input.html │ │ ├── output.atx.golden │ │ ├── output.default.golden │ │ └── output.setext.golden │ ├── hr │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── image │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── italic │ │ ├── goldmark.golden │ │ ├── input.html │ │ ├── output.asterisks.golden │ │ └── output.underscores.golden │ ├── keep_remove_tag │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── link │ │ ├── input.html │ │ ├── output.inlined.golden │ │ ├── output.referenced_collapsed.golden │ │ ├── output.referenced_full.golden │ │ ├── output.referenced_shortcut.golden │ │ └── output.relative.golden │ ├── list │ │ ├── goldmark.golden │ │ ├── input.html │ │ ├── output.asterisks.golden │ │ ├── output.dash.golden │ │ └── output.plus.golden │ ├── list_nested │ │ ├── input.html │ │ ├── output.asterisks.golden │ │ ├── output.dash.golden │ │ └── output.plus.golden │ ├── p_tag │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── pre_code │ │ ├── goldmark.golden │ │ ├── input.html │ │ ├── output.fenced_backtick.golden │ │ ├── output.fenced_tilde.golden │ │ └── output.indented.golden │ └── sup_element │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden ├── TestFromString │ ├── nested_lists.golden │ └── ul_in_ol.golden ├── TestPlugins │ ├── checkbox │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ ├── movefrontmatter │ │ ├── blog │ │ │ ├── goldmark.golden │ │ │ ├── input.html │ │ │ └── output.default.golden │ │ ├── jekyll │ │ │ ├── goldmark.golden │ │ │ ├── input.html │ │ │ └── output.default.golden │ │ ├── not │ │ │ ├── goldmark.golden │ │ │ ├── input.html │ │ │ └── output.default.golden │ │ └── simple │ │ │ ├── goldmark.golden │ │ │ ├── input.html │ │ │ └── output.default.golden │ ├── strikethrough │ │ ├── goldmark.golden │ │ ├── input.html │ │ └── output.default.golden │ └── table │ │ ├── input.html │ │ ├── output.default.golden │ │ ├── output.table.golden │ │ └── output.tablecompat.golden └── TestRealWorld │ ├── blog.golang.org │ ├── goldmark.golden │ ├── input.html │ ├── output.emphasis_asterisks.golden │ ├── output.emphasis_underscores.golden │ ├── output.inlined.golden │ ├── output.referenced_collapsed.golden │ ├── output.referenced_full.golden │ └── output.referenced_shortcut.golden │ ├── golang.org │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ └── snippets │ ├── github_about │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── heading_in_link │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── nav_nested_list │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── pre_code │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── price_em_in_a_p │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── square_brackets │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── text_with_whitespace │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ ├── turndown_demo │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden │ └── tweet │ ├── goldmark.golden │ ├── input.html │ └── output.default.golden ├── utils.go └── utils_test.go /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/SECURITY.md -------------------------------------------------------------------------------- /commonmark.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/commonmark.go -------------------------------------------------------------------------------- /commonmark_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/commonmark_test.go -------------------------------------------------------------------------------- /escape/escape.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/escape/escape.go -------------------------------------------------------------------------------- /examples/add_rules/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/add_rules/main.go -------------------------------------------------------------------------------- /examples/custom_tag/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/custom_tag/main.go -------------------------------------------------------------------------------- /examples/escaping/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/escaping/main.go -------------------------------------------------------------------------------- /examples/github_flavored/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/github_flavored/main.go -------------------------------------------------------------------------------- /examples/goquery/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/goquery/main.go -------------------------------------------------------------------------------- /examples/options/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/examples/options/main.go -------------------------------------------------------------------------------- /from.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/from.go -------------------------------------------------------------------------------- /from_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/from_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/go.sum -------------------------------------------------------------------------------- /logo_five_years.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/logo_five_years.png -------------------------------------------------------------------------------- /markdown.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/markdown.go -------------------------------------------------------------------------------- /markdown_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/markdown_test.go -------------------------------------------------------------------------------- /plugin/confluence_attachment_block.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/confluence_attachment_block.go -------------------------------------------------------------------------------- /plugin/confluence_code_block.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/confluence_code_block.go -------------------------------------------------------------------------------- /plugin/frontmatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/frontmatter.go -------------------------------------------------------------------------------- /plugin/gfm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/gfm.go -------------------------------------------------------------------------------- /plugin/movefrontmatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/movefrontmatter.go -------------------------------------------------------------------------------- /plugin/plugin_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/plugin_test.go -------------------------------------------------------------------------------- /plugin/strikethrough.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/strikethrough.go -------------------------------------------------------------------------------- /plugin/table.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/table.go -------------------------------------------------------------------------------- /plugin/task_list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/task_list.go -------------------------------------------------------------------------------- /plugin/vimeo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/vimeo.go -------------------------------------------------------------------------------- /plugin/youtube.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin/youtube.go -------------------------------------------------------------------------------- /plugin_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/plugin_test.go -------------------------------------------------------------------------------- /testdata/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/README.md -------------------------------------------------------------------------------- /testdata/TestCommonmark/blockquote/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/blockquote/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/blockquote/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/blockquote/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/blockquote/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/blockquote/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/bold/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/bold/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/bold/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/bold/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/bold/output.asterisks.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/bold/output.asterisks.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/bold/output.underscores.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/bold/output.underscores.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/br_element/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/br_element/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/br_element/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/br_element/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/br_element/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/br_element/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/heading/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/heading/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/heading/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/heading/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/heading/output.atx.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/heading/output.atx.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/heading/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/heading/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/heading/output.setext.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/heading/output.setext.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/hr/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/hr/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/hr/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/hr/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/hr/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/hr/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/image/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/image/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/image/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/image/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/image/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/image/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/italic/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/italic/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/italic/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/italic/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/italic/output.asterisks.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/italic/output.asterisks.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/italic/output.underscores.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/italic/output.underscores.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/keep_remove_tag/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/keep_remove_tag/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/keep_remove_tag/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/keep_remove_tag/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/keep_remove_tag/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/keep_remove_tag/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/output.inlined.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/output.inlined.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/output.referenced_collapsed.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/output.referenced_collapsed.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/output.referenced_full.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/output.referenced_full.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/output.referenced_shortcut.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/output.referenced_shortcut.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/link/output.relative.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/link/output.relative.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/list/output.asterisks.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list/output.asterisks.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list/output.dash.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list/output.dash.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list/output.plus.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list/output.plus.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list_nested/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list_nested/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/list_nested/output.asterisks.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list_nested/output.asterisks.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list_nested/output.dash.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list_nested/output.dash.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/list_nested/output.plus.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/list_nested/output.plus.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/p_tag/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/p_tag/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/p_tag/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/p_tag/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/p_tag/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/p_tag/output.default.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/pre_code/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/pre_code/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/pre_code/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/pre_code/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/pre_code/output.fenced_backtick.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/pre_code/output.fenced_backtick.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/pre_code/output.fenced_tilde.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/pre_code/output.fenced_tilde.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/pre_code/output.indented.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/pre_code/output.indented.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/sup_element/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/sup_element/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestCommonmark/sup_element/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/sup_element/input.html -------------------------------------------------------------------------------- /testdata/TestCommonmark/sup_element/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestCommonmark/sup_element/output.default.golden -------------------------------------------------------------------------------- /testdata/TestFromString/nested_lists.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestFromString/nested_lists.golden -------------------------------------------------------------------------------- /testdata/TestFromString/ul_in_ol.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestFromString/ul_in_ol.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/checkbox/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/checkbox/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/checkbox/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/checkbox/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/checkbox/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/checkbox/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/blog/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/blog/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/blog/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/blog/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/blog/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/blog/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/jekyll/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/jekyll/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/jekyll/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/jekyll/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/jekyll/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/jekyll/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/not/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/not/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/not/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/not/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/not/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/not/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/simple/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/simple/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/simple/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/simple/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/movefrontmatter/simple/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/movefrontmatter/simple/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/strikethrough/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/strikethrough/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/strikethrough/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/strikethrough/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/strikethrough/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/strikethrough/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/table/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/table/input.html -------------------------------------------------------------------------------- /testdata/TestPlugins/table/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/table/output.default.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/table/output.table.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/table/output.table.golden -------------------------------------------------------------------------------- /testdata/TestPlugins/table/output.tablecompat.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestPlugins/table/output.tablecompat.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.emphasis_asterisks.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.emphasis_asterisks.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.emphasis_underscores.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.emphasis_underscores.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.inlined.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.inlined.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.referenced_collapsed.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.referenced_collapsed.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.referenced_full.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.referenced_full.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/blog.golang.org/output.referenced_shortcut.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/blog.golang.org/output.referenced_shortcut.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/golang.org/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/golang.org/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/golang.org/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/golang.org/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/golang.org/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/golang.org/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/github_about/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/github_about/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/github_about/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/github_about/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/github_about/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/github_about/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/heading_in_link/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/heading_in_link/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/heading_in_link/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/heading_in_link/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/heading_in_link/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/heading_in_link/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/nav_nested_list/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/nav_nested_list/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/nav_nested_list/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/nav_nested_list/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/nav_nested_list/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/nav_nested_list/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/pre_code/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/pre_code/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/pre_code/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/pre_code/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/pre_code/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/pre_code/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/price_em_in_a_p/goldmark.golden: -------------------------------------------------------------------------------- 1 |

首付 19,8万 月供

2 | -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/price_em_in_a_p/input.html: -------------------------------------------------------------------------------- 1 |

首付19,8 月供

-------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/price_em_in_a_p/output.default.golden: -------------------------------------------------------------------------------- 1 | 首付 _19,8万_ 月供 -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/square_brackets/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/square_brackets/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/square_brackets/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/square_brackets/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/square_brackets/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/square_brackets/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/text_with_whitespace/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/text_with_whitespace/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/text_with_whitespace/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/text_with_whitespace/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/text_with_whitespace/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/text_with_whitespace/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/turndown_demo/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/turndown_demo/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/turndown_demo/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/turndown_demo/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/turndown_demo/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/turndown_demo/output.default.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/tweet/goldmark.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/tweet/goldmark.golden -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/tweet/input.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/tweet/input.html -------------------------------------------------------------------------------- /testdata/TestRealWorld/snippets/tweet/output.default.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/testdata/TestRealWorld/snippets/tweet/output.default.golden -------------------------------------------------------------------------------- /utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/utils.go -------------------------------------------------------------------------------- /utils_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anyproto/html-to-markdown/HEAD/utils_test.go --------------------------------------------------------------------------------