atproto pastebin service: https://plonk.li

adds syntax highlighting from shiki which server side renders, and adds a copy text button #5

merged
opened by nekomimi.pet targeting main from [deleted fork]: main

src/lib/highlight.ts uses shiki to parse code and output as html, uses catppuccin-latte and catppuccin-mocha as its themes.

src/public/styles.css added css for the shiki highlighted code blocks and button, query for the reactive theme switching for shiki

src/views/index.pug added nix and bash as language options

package.json & package-lock.json added shiki dependency (^3.4.2)

src/routes.ts integrated the highlighting system - processes code through shiki before rendering.

src/views/paste.pug replaced regex based line splitting with the shiki processed html

0
by nekomimi.pet 3 comments
expand 2 commits
695bf809
add server sided code highlighting from shiki
f5924e27
add copy button

this is awesome thanks!

pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

Participants 2
AT URI
at://did:plc:ttdrpj45ibqunmfhdsb4zdwq/sh.tangled.repo.pull/3lqasymgqb422