Timothy DeHerrera
|
c145bf86b9
|
feat: integrate syntax highlighting into render pipeline
- src/render.rs: Rewrite with event-based pulldown-cmark parsing.
Intercepts CodeBlock events and applies tree-sitter highlighting.
4 new tests covering highlighted and unhighlighted code blocks.
- src/highlight.rs: Fix HtmlRenderer callback to return attributes
only (not full span tags). Static HTML_ATTRS array for zero-alloc.
- static/style.css: Add 20 hl-* CSS classes with CSS variables.
Light and dark mode via prefers-color-scheme.
Supported languages: rust, bash, json. Phase 2 complete.
|
2026-01-24 20:47:31 -07:00 |
|
Timothy DeHerrera
|
5317da94c4
|
feat: add minimal base CSS with dark mode support
- static/style.css: CSS variable-based theming with:
- Typography (system fonts, monospace for code)
- Layout (centered content, nav/main/footer structure)
- Dark mode via prefers-color-scheme
- Component styles (posts, cards, tags, hero)
- src/main.rs: Add copy_static_assets() to copy static/
directory to public/ during build
Phase 1 complete. Ready for syntax highlighting.
|
2026-01-24 20:27:22 -07:00 |
|