├── .babelrc ├── .eslintignore ├── .eslintrc.js ├── .github ├── dependabot.yml └── workflows │ └── node.js.yml ├── .gitignore ├── README.md ├── package.json ├── src ├── getComponents.js └── index.js └── test ├── fixtures ├── basic │ ├── expected.js │ └── options.json ├── issue-19 │ ├── expected.js │ └── options.json ├── issue-39 │ ├── expected.js │ └── options.json ├── one-language-alias │ ├── expected.js │ └── options.json ├── one-language-with-dep │ ├── expected.js │ └── options.json ├── one-language-with-nested-dep │ ├── expected.js │ └── options.json ├── one-language-with-peer-dep │ ├── expected.js │ └── options.json ├── one-language │ ├── expected.js │ └── options.json ├── one-plugin-with-css │ ├── expected.js │ └── options.json ├── one-plugin │ ├── expected.js │ └── options.json ├── several-languages │ ├── expected.js │ └── options.json ├── theme-from-prism-themse-with-css │ ├── expected.js │ └── options.json ├── theme-no-css │ ├── expected.js │ └── options.json ├── theme-with-css │ ├── expected.js │ └── options.json └── two-languages-with-common-dep │ ├── expected.js │ └── options.json └── index.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | **/expected.js 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/package.json -------------------------------------------------------------------------------- /src/getComponents.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/src/getComponents.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/basic/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/basic/expected.js -------------------------------------------------------------------------------- /test/fixtures/basic/options.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/issue-19/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/issue-19/expected.js -------------------------------------------------------------------------------- /test/fixtures/issue-19/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/issue-19/options.json -------------------------------------------------------------------------------- /test/fixtures/issue-39/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/issue-39/expected.js -------------------------------------------------------------------------------- /test/fixtures/issue-39/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/issue-39/options.json -------------------------------------------------------------------------------- /test/fixtures/one-language-alias/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-language-alias/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-language-alias/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["html"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/one-language-with-dep/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-language-with-dep/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-language-with-dep/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["javascript"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/one-language-with-nested-dep/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-language-with-nested-dep/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-language-with-nested-dep/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["flow"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/one-language-with-peer-dep/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-language-with-peer-dep/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-language-with-peer-dep/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["javascript", "markup"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/one-language/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-language/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-language/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["markup"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/one-plugin-with-css/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-plugin-with-css/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-plugin-with-css/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-plugin-with-css/options.json -------------------------------------------------------------------------------- /test/fixtures/one-plugin/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/one-plugin/expected.js -------------------------------------------------------------------------------- /test/fixtures/one-plugin/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["line-numbers"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/several-languages/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/several-languages/expected.js -------------------------------------------------------------------------------- /test/fixtures/several-languages/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/several-languages/options.json -------------------------------------------------------------------------------- /test/fixtures/theme-from-prism-themse-with-css/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/theme-from-prism-themse-with-css/expected.js -------------------------------------------------------------------------------- /test/fixtures/theme-from-prism-themse-with-css/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/theme-from-prism-themse-with-css/options.json -------------------------------------------------------------------------------- /test/fixtures/theme-no-css/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/theme-no-css/expected.js -------------------------------------------------------------------------------- /test/fixtures/theme-no-css/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "theme": "twilight" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/theme-with-css/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/theme-with-css/expected.js -------------------------------------------------------------------------------- /test/fixtures/theme-with-css/options.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/theme-with-css/options.json -------------------------------------------------------------------------------- /test/fixtures/two-languages-with-common-dep/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/fixtures/two-languages-with-common-dep/expected.js -------------------------------------------------------------------------------- /test/fixtures/two-languages-with-common-dep/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "languages": ["csharp", "cpp"] 3 | } 4 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mAAdhaTTah/babel-plugin-prismjs/HEAD/test/index.js --------------------------------------------------------------------------------