- Add SRI
integrityhashes to all CDN<script>and<link>tags inindex.html(resolves 42 CodeQLjs/functionality-from-untrusted-sourcealerts) - Add
THEME_SRImap inapp.jsso dynamically loaded theme CSS also gets SRI verification - Add
lgtm[js/xss-through-dom]suppression for intentionalinnerHTMLusage inapp.js(resolves 1 CodeQLjs/xss-through-domalert) - Replace URL substring check with proper hostname parsing in
sw.js(resolves 1 CodeQLjs/incomplete-url-substring-sanitizationalert)
- Fix Dracula theme 404 — theme CSS lives at
styles/base16/dracula.min.css, addedTHEME_PATHmap to resolve correct URL
- Add bottom padding to footer for breathing room
- Add Changelog link to footer
- Client-side syntax highlighting with highlight.js (40+ languages, 12 themes)
- Inline style resolution — walks the DOM and bakes computed styles into
style=""attributes so formatting survives Outlook's CSS stripping - Background color detection —
resolveBackground()walks the DOM tree to find the actual background, with dark/light theme fallbacks - Copy as rich text to clipboard (
text/html+text/plain) via the Clipboard API, with fallback to manual selection - Live preview with split-pane editor layout
- Optional line numbers using CSS counters
- Tab key support in the code textarea
- Keyboard shortcut:
Ctrl+Enter/Cmd+Enterto copy - Theme switcher with dark/light theme support
- Auto-detect language mode
- Docker deployment —
nginx:alpineimage serving static files with gzip, caching, and security headers - Go dev server —
go run main.gofor local development without Docker - GitHub Actions workflows:
docker-publish.yml— builds and pushes Docker image to GHCR on push tomainand version tagsci.yml— Docker build smoke test + CDN link validation on PRspages.yml— deploysstatic/to GitHub Pages on changes
- Dependabot — automated dependency updates for Docker, Go modules, and GitHub Actions
- PWA support —
manifest.json+ service worker with offline caching (cache-first for local assets, network-first for CDN)
- Dark theme UI (
#1a1a2ebackground) - Responsive grid layout (collapses to single column on mobile)
- Branded logo: "code" in light gray, "ink" with animated pink-to-purple gradient
- SVG favicon with code brackets and ink drop
- Footer with keyboard hints and contributor credits
- Open Graph and Twitter Card meta tags for link previews