├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── automerge.yml │ ├── lint.yml │ ├── tag_and_release.yml │ ├── test.yml │ └── test_build.yml ├── .gitignore ├── .rubocop.yml ├── .ruby-version ├── .vscode ├── extensions.json └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.txt ├── Cargo.lock ├── Cargo.toml ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── commonmarker.gemspec ├── ext └── commonmarker │ ├── Cargo.toml │ ├── extconf.rb │ └── src │ ├── lib.rs │ ├── node.rs │ ├── options.rs │ ├── plugins.rs │ ├── plugins │ └── syntax_highlighting.rs │ └── utils.rs ├── lib ├── commonmarker.rb └── commonmarker │ ├── config.rb │ ├── constants.rb │ ├── extension.rb │ ├── node.rb │ ├── node │ ├── ast.rb │ └── inspect.rb │ ├── renderer.rb │ ├── utils.rb │ └── version.rb ├── rakelib ├── benchmark.rake ├── docs.rake ├── extension.rake ├── lint.rake └── test.rake ├── script ├── bootstrap ├── cibuild └── single_test └── test ├── alert_test.rb ├── basics_test.rb ├── benchmark.rb ├── benchmark └── small.md ├── config_test.rb ├── encoding_test.rb ├── escaped_char_spans_test.rb ├── extensions_test.rb ├── fixtures ├── Monokai.tmTheme ├── curly.md ├── dingus.md ├── strong.md ├── table.md └── upstream │ ├── smart_punct.txt │ └── spec.txt ├── footnotes_test.rb ├── frontmatter_test.rb ├── linebreaks_test.rb ├── maliciousness_test.rb ├── math_test.rb ├── multiline_block_quotes_test.rb ├── node ├── creation_test.rb └── traversal_test.rb ├── node_test.rb ├── pathological_inputs_test.rb ├── relaxed_autolinks_test.rb ├── smartpunct_test.rb ├── sourcepos_test.rb ├── spec_test.rb ├── syntax_highlighting_test.rb ├── tasklists_test.rb ├── test_helper.rb └── wikilinks_test.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/automerge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/workflows/automerge.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/tag_and_release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/workflows/tag_and_release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/test_build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.github/workflows/test_build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.4.0 2 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/CODE_OF_CONDUCT.txt -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/Rakefile -------------------------------------------------------------------------------- /commonmarker.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/commonmarker.gemspec -------------------------------------------------------------------------------- /ext/commonmarker/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/Cargo.toml -------------------------------------------------------------------------------- /ext/commonmarker/extconf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/extconf.rb -------------------------------------------------------------------------------- /ext/commonmarker/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/lib.rs -------------------------------------------------------------------------------- /ext/commonmarker/src/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/node.rs -------------------------------------------------------------------------------- /ext/commonmarker/src/options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/options.rs -------------------------------------------------------------------------------- /ext/commonmarker/src/plugins.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/plugins.rs -------------------------------------------------------------------------------- /ext/commonmarker/src/plugins/syntax_highlighting.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/plugins/syntax_highlighting.rs -------------------------------------------------------------------------------- /ext/commonmarker/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/ext/commonmarker/src/utils.rs -------------------------------------------------------------------------------- /lib/commonmarker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker.rb -------------------------------------------------------------------------------- /lib/commonmarker/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/config.rb -------------------------------------------------------------------------------- /lib/commonmarker/constants.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/constants.rb -------------------------------------------------------------------------------- /lib/commonmarker/extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/extension.rb -------------------------------------------------------------------------------- /lib/commonmarker/node.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/node.rb -------------------------------------------------------------------------------- /lib/commonmarker/node/ast.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/node/ast.rb -------------------------------------------------------------------------------- /lib/commonmarker/node/inspect.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/node/inspect.rb -------------------------------------------------------------------------------- /lib/commonmarker/renderer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/renderer.rb -------------------------------------------------------------------------------- /lib/commonmarker/utils.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/lib/commonmarker/utils.rb -------------------------------------------------------------------------------- /lib/commonmarker/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Commonmarker 4 | VERSION = "2.6.0" 5 | end 6 | -------------------------------------------------------------------------------- /rakelib/benchmark.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/rakelib/benchmark.rake -------------------------------------------------------------------------------- /rakelib/docs.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/rakelib/docs.rake -------------------------------------------------------------------------------- /rakelib/extension.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/rakelib/extension.rake -------------------------------------------------------------------------------- /rakelib/lint.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/rakelib/lint.rake -------------------------------------------------------------------------------- /rakelib/test.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/rakelib/test.rake -------------------------------------------------------------------------------- /script/bootstrap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/script/bootstrap -------------------------------------------------------------------------------- /script/cibuild: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/script/cibuild -------------------------------------------------------------------------------- /script/single_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/script/single_test -------------------------------------------------------------------------------- /test/alert_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/alert_test.rb -------------------------------------------------------------------------------- /test/basics_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/basics_test.rb -------------------------------------------------------------------------------- /test/benchmark.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/benchmark.rb -------------------------------------------------------------------------------- /test/benchmark/small.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/benchmark/small.md -------------------------------------------------------------------------------- /test/config_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/config_test.rb -------------------------------------------------------------------------------- /test/encoding_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/encoding_test.rb -------------------------------------------------------------------------------- /test/escaped_char_spans_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/escaped_char_spans_test.rb -------------------------------------------------------------------------------- /test/extensions_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/extensions_test.rb -------------------------------------------------------------------------------- /test/fixtures/Monokai.tmTheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/fixtures/Monokai.tmTheme -------------------------------------------------------------------------------- /test/fixtures/curly.md: -------------------------------------------------------------------------------- 1 | This curly quote “makes commonmarker throw an exception”. 2 | -------------------------------------------------------------------------------- /test/fixtures/dingus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/fixtures/dingus.md -------------------------------------------------------------------------------- /test/fixtures/strong.md: -------------------------------------------------------------------------------- 1 | I am **strong** 2 | -------------------------------------------------------------------------------- /test/fixtures/table.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/fixtures/table.md -------------------------------------------------------------------------------- /test/fixtures/upstream/smart_punct.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/fixtures/upstream/smart_punct.txt -------------------------------------------------------------------------------- /test/fixtures/upstream/spec.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/fixtures/upstream/spec.txt -------------------------------------------------------------------------------- /test/footnotes_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/footnotes_test.rb -------------------------------------------------------------------------------- /test/frontmatter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/frontmatter_test.rb -------------------------------------------------------------------------------- /test/linebreaks_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/linebreaks_test.rb -------------------------------------------------------------------------------- /test/maliciousness_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/maliciousness_test.rb -------------------------------------------------------------------------------- /test/math_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/math_test.rb -------------------------------------------------------------------------------- /test/multiline_block_quotes_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/multiline_block_quotes_test.rb -------------------------------------------------------------------------------- /test/node/creation_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/node/creation_test.rb -------------------------------------------------------------------------------- /test/node/traversal_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/node/traversal_test.rb -------------------------------------------------------------------------------- /test/node_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/node_test.rb -------------------------------------------------------------------------------- /test/pathological_inputs_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/pathological_inputs_test.rb -------------------------------------------------------------------------------- /test/relaxed_autolinks_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/relaxed_autolinks_test.rb -------------------------------------------------------------------------------- /test/smartpunct_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/smartpunct_test.rb -------------------------------------------------------------------------------- /test/sourcepos_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/sourcepos_test.rb -------------------------------------------------------------------------------- /test/spec_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/spec_test.rb -------------------------------------------------------------------------------- /test/syntax_highlighting_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/syntax_highlighting_test.rb -------------------------------------------------------------------------------- /test/tasklists_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/tasklists_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/wikilinks_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gjtorikian/commonmarker/HEAD/test/wikilinks_test.rb --------------------------------------------------------------------------------