├── .github └── workflows │ └── regression.yml ├── .gitignore ├── .npmignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── package.json ├── pnpm-lock.yaml ├── samples ├── codeblock-rendered-using-custom-plugin.png ├── codeblock-rendered-using-default-and-custom-plugins.png ├── codeblock-rendered-without-plugins.png ├── codeblock-with-aliased-language.png ├── codeblock-with-diffed-lines.png ├── codeblock-with-highlighted-lines.png ├── codeblock-with-multiple-lines.png ├── codeblock-with-prompts.png ├── codeblock-with-single-line.png ├── codeblock-with-title.png ├── codeblock-with-unknown-language.png ├── codeblock-without-language-info.png ├── general-usage.png ├── inline-code-without-language-info.png └── inline-code.png ├── src ├── index.css ├── props.css ├── rehype-starry-night-inline │ └── index.js ├── rehype-starry-night │ ├── index.js │ └── plugins │ │ ├── header-language-plugin.js │ │ ├── header-title-plugin.js │ │ ├── line-del-plugin.js │ │ ├── line-ins-plugin.js │ │ ├── line-mark-plugin.js │ │ ├── line-output-plugin.js │ │ └── line-prompt-plugin.js └── remark-inline-code-lang │ └── index.js └── test ├── rehype-starry-night-inline ├── plugin.test.js └── snapshots │ ├── code_element_with_custom_class_name_prefix.snap.html │ ├── code_element_without_annotation.snap.html │ ├── multiple_annotated_code_elements.snap.html │ ├── no_code_element.snap.html │ └── single_annotated_code_element.snap.html ├── rehype-starry-night ├── fixtures.js ├── plugin.test.js └── snapshots │ ├── codeblock_rendered_using_custom_header_plugin.snap.html │ ├── codeblock_rendered_using_default_and_custom_plugins.snap.html │ ├── codeblock_rendered_with_custom_classname_prefix.snap.html │ ├── codeblock_rendered_without_plugins.snap.html │ ├── codeblock_with_added_lines.snap.html │ ├── codeblock_with_aliased_language.snap.html │ ├── codeblock_with_command_and_output.snap.html │ ├── codeblock_with_highlighted_lines.snap.html │ ├── codeblock_with_language_in_common_grammars.snap.html │ ├── codeblock_with_language_not_in_common_grammars.snap.html │ ├── codeblock_with_multiple_lines.snap.html │ ├── codeblock_with_multiple_prompts.snap.html │ ├── codeblock_with_removed_lines.snap.html │ ├── codeblock_with_single_line.snap.html │ ├── codeblock_with_single_prompt.snap.html │ ├── codeblock_with_title.snap.html │ ├── codeblock_with_unknown_language.snap.html │ ├── codeblock_without_language_info.snap.html │ └── no_codeblock.snap.html └── remark-inline-code-lang ├── plugin.test.js └── snapshots ├── code_element_with_custom_marker.snap.html ├── code_element_without_annotation.snap.html ├── multiple_annotated_code_elements.snap.html ├── no_code_element.snap.html └── single_annotated_code_element.snap.html /.github/workflows/regression.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/.github/workflows/regression.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .workspace 3 | node_modules 4 | 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .workspace 2 | samples 3 | test 4 | 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/pnpm-lock.yaml -------------------------------------------------------------------------------- /samples/codeblock-rendered-using-custom-plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-rendered-using-custom-plugin.png -------------------------------------------------------------------------------- /samples/codeblock-rendered-using-default-and-custom-plugins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-rendered-using-default-and-custom-plugins.png -------------------------------------------------------------------------------- /samples/codeblock-rendered-without-plugins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-rendered-without-plugins.png -------------------------------------------------------------------------------- /samples/codeblock-with-aliased-language.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-aliased-language.png -------------------------------------------------------------------------------- /samples/codeblock-with-diffed-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-diffed-lines.png -------------------------------------------------------------------------------- /samples/codeblock-with-highlighted-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-highlighted-lines.png -------------------------------------------------------------------------------- /samples/codeblock-with-multiple-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-multiple-lines.png -------------------------------------------------------------------------------- /samples/codeblock-with-prompts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-prompts.png -------------------------------------------------------------------------------- /samples/codeblock-with-single-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-single-line.png -------------------------------------------------------------------------------- /samples/codeblock-with-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-title.png -------------------------------------------------------------------------------- /samples/codeblock-with-unknown-language.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-with-unknown-language.png -------------------------------------------------------------------------------- /samples/codeblock-without-language-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/codeblock-without-language-info.png -------------------------------------------------------------------------------- /samples/general-usage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/general-usage.png -------------------------------------------------------------------------------- /samples/inline-code-without-language-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/inline-code-without-language-info.png -------------------------------------------------------------------------------- /samples/inline-code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/samples/inline-code.png -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/index.css -------------------------------------------------------------------------------- /src/props.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/props.css -------------------------------------------------------------------------------- /src/rehype-starry-night-inline/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night-inline/index.js -------------------------------------------------------------------------------- /src/rehype-starry-night/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/index.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/header-language-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/header-language-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/header-title-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/header-title-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/line-del-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/line-del-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/line-ins-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/line-ins-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/line-mark-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/line-mark-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/line-output-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/line-output-plugin.js -------------------------------------------------------------------------------- /src/rehype-starry-night/plugins/line-prompt-plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/rehype-starry-night/plugins/line-prompt-plugin.js -------------------------------------------------------------------------------- /src/remark-inline-code-lang/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/src/remark-inline-code-lang/index.js -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/plugin.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night-inline/plugin.test.js -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/snapshots/code_element_with_custom_class_name_prefix.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night-inline/snapshots/code_element_with_custom_class_name_prefix.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/snapshots/code_element_without_annotation.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night-inline/snapshots/code_element_without_annotation.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/snapshots/multiple_annotated_code_elements.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night-inline/snapshots/multiple_annotated_code_elements.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/snapshots/no_code_element.snap.html: -------------------------------------------------------------------------------- 1 | "

Divided we fall.

" -------------------------------------------------------------------------------- /test/rehype-starry-night-inline/snapshots/single_annotated_code_element.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night-inline/snapshots/single_annotated_code_element.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/fixtures.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/fixtures.js -------------------------------------------------------------------------------- /test/rehype-starry-night/plugin.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/plugin.test.js -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_rendered_using_custom_header_plugin.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_rendered_using_custom_header_plugin.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_rendered_using_default_and_custom_plugins.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_rendered_using_default_and_custom_plugins.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_rendered_with_custom_classname_prefix.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_rendered_with_custom_classname_prefix.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_rendered_without_plugins.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_rendered_without_plugins.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_added_lines.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_added_lines.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_aliased_language.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_aliased_language.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_command_and_output.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_command_and_output.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_highlighted_lines.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_highlighted_lines.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_language_in_common_grammars.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_language_in_common_grammars.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_language_not_in_common_grammars.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_language_not_in_common_grammars.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_multiple_lines.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_multiple_lines.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_multiple_prompts.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_multiple_prompts.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_removed_lines.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_removed_lines.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_single_line.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_single_line.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_single_prompt.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_single_prompt.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_title.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_title.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_with_unknown_language.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_with_unknown_language.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/codeblock_without_language_info.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/rehype-starry-night/snapshots/codeblock_without_language_info.snap.html -------------------------------------------------------------------------------- /test/rehype-starry-night/snapshots/no_codeblock.snap.html: -------------------------------------------------------------------------------- 1 | "

Time moves slowly, but passes quickly.

" -------------------------------------------------------------------------------- /test/remark-inline-code-lang/plugin.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/remark-inline-code-lang/plugin.test.js -------------------------------------------------------------------------------- /test/remark-inline-code-lang/snapshots/code_element_with_custom_marker.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/remark-inline-code-lang/snapshots/code_element_with_custom_marker.snap.html -------------------------------------------------------------------------------- /test/remark-inline-code-lang/snapshots/code_element_without_annotation.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/remark-inline-code-lang/snapshots/code_element_without_annotation.snap.html -------------------------------------------------------------------------------- /test/remark-inline-code-lang/snapshots/multiple_annotated_code_elements.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/remark-inline-code-lang/snapshots/multiple_annotated_code_elements.snap.html -------------------------------------------------------------------------------- /test/remark-inline-code-lang/snapshots/no_code_element.snap.html: -------------------------------------------------------------------------------- 1 | "

Divided we fall.

" -------------------------------------------------------------------------------- /test/remark-inline-code-lang/snapshots/single_annotated_code_element.snap.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Microflash/rehype-starry-night/main/test/remark-inline-code-lang/snapshots/single_annotated_code_element.snap.html --------------------------------------------------------------------------------