rehype-pretty-code
Beautiful code blocks for Markdown or MDX.
File Explorer
Download Latest Version (.zip)- changelog.cjs
- config.json
- screenshot.png
- checks.yml
- preview.yml
- release.yml
- extensions.json
- settings.json
- anchor-targets.js
- moonlight-ii.json
- _redirects
- favicon.ico
- copy-button.mdx
- examples.mdx
- index.mdx
- config.ts
- index.css
- tailwind.css
- env.d.ts
- .gitignore
- astro.config.ts
- package.json
- README.md
- reset.d.ts
- tailwind.config.ts
- tsconfig.json
- moonlight-ii.json
- favicon.ico
- BaseLayout.astro
- index.mdx
- page.astro
- env.d.ts
- globals.css
- .gitignore
- astro.config.ts
- package.json
- README.md
- tailwind.config.ts
- tsconfig.json
- index.html
- package.json
- README.md
- moonlight-ii.json
- page.tsx
- code.tsx
- favicon.ico
- footer.tsx
- globals.css
- header.tsx
- index.mdx
- layout.tsx
- page.tsx
- mdx-components.tsx
- .gitignore
- next.config.mjs
- package.json
- postcss.config.js
- README.md
- tailwind.config.js
- tsconfig.json
- fib-elixir.ex
- fib-lisp.lsp
- fib-perl.pl
- fib-typescript.ts
- markdown.ts
- +layout.svelte
- +layout.ts
- +page.svelte
- +page.ts
- app.css
- app.d.ts
- app.html
- favicon.ico
- .gitignore
- .npmrc
- package.json
- README.md
- svelte.config.js
- tsconfig.json
- vite.config.ts
- charsHighlighter.ts
- getElementsToHighlight.ts
- utils.ts
- wrapHighlightedChars.ts
- index.ts
- types.ts
- utils.ts
- ansi.md
- bypassInlineCode.md
- caption.md
- charsRangeInheritance.md
- defaultLang.block=js.md
- defaultLang.inline=js&block=js.md
- defaultLang.inline=js.md
- defaultLang.js.md
- diff.md
- filterMetaString.md
- highlightChars.md
- highlightCharsById.md
- highlightCharsComplex.md
- highlightCharsMultiTokenRepeat.md
- highlightCharsRange.md
- highlightedCharsLoop.md
- highlightedLine.md
- highlightedLines.md
- highlightedLinesWithShowLineNumbersAt.md
- highlightedMultipleCharsRange.md
- highlightLinesById.md
- highlightMultipleChars.md
- highlightPartialNode.md
- inline.md
- inlineMultipleTheme.md
- keepBackground.md
- manyLines.md
- multiWordLanguage.md
- no-highlighting.md
- oneLine.md
- showLineNumbers.md
- showLineNumbersAfterHighlight.md
- showLineNumbersStartAt.md
- showLineNumbersStartAtMultipleTheme.md
- title.md
- transformers.md
- undefined.md
- unknownLanguage.md
- ansi.html
- bypassInlineCode.html
- caption.html
- charsRangeInheritance.html
- defaultLang.block=js.html
- defaultLang.inline=js&block=js.html
- defaultLang.inline=js.html
- defaultLang.js.html
- diff.html
- filterMetaString.html
- highlightChars.html
- highlightCharsById.html
- highlightCharsComplex.html
- highlightCharsMultiTokenRepeat.html
- highlightCharsRange.html
- highlightedCharsLoop.html
- highlightedLine.html
- highlightedLines.html
- highlightedLinesWithShowLineNumbersAt.html
- highlightedMultipleCharsRange.html
- highlightLinesById.html
- highlightMultipleChars.html
- highlightPartialNode.html
- inline.html
- inlineMultipleTheme.html
- keepBackground.html
- manyLines.html
- multiWordLanguage.html
- no-highlighting.html
- oneLine.html
- showLineNumbers.html
- showLineNumbersAfterHighlight.html
- showLineNumbersStartAt.html
- showLineNumbersStartAtMultipleTheme.html
- title.html
- transformers.html
- undefined.html
- unknownLanguage.html
- fixtures.test.ts
- .npmrc
- CHANGELOG.md
- jsr.json
- LICENSE
- package.json
- README.md
- tsconfig.json
- tsup.config.ts
- copy-button.ts
- foldable-sections.ts
- index.ts
- copy-button.ts
- foldable-lines.ts
- index.ts
- .npmrc
- CHANGELOG.md
- jsr.json
- LICENSE
- package.json
- README.md
- tsconfig.json
- tsup.config.ts
- changeset-update-version.ts
- clean.sh
- workspace.ts
- .git-blame-ignore-revs
- .gitattributes
- .gitignore
- .markdownlint.json
- .npmrc
- biome.json
- LICENSE
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- README.md
- reset.d.ts
- tsconfig.json
- turbo.json
# Installation Guide
1. Get the code
git clone https://github.com/rehype-pretty/rehype-pretty-code
Downloads the entire project code from GitHub to your computer.
cd rehype-pretty-code
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
