Public
Remixed
Global line numbers with rehype-pretty-code
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Global line numbers with rehype-pretty-code

A live Val Town example showing an unannotated Markdown fence rendered with line numbers globally enabled.

const options = { filterMetaString: (meta) => `${meta} showLineNumbers`, };

The page is server-rendered with the real rehype-pretty-code@0.14.5 pipeline. Open the HTTP preview to see the input, option, and rendered output.