Format case law text as markdown in side panel

↗ view on GitHub · Claude · 2026-05-05 · fe1f464a

- Add xmlToMarkdown() converter that preserves structure from
  rechtspraak.nl XML: section headings (##), r.o. numbers (**3.1**),
  paragraph breaks, emphasis, lists, footnotes
- fetchCaseLaw() accepts display option: markdown at 80K chars for
  side panel, plain text at 15K chars for LLM tool calls
- LegalPanel uses ReactMarkdown + rehype-raw to render the markdown
- Exact-match quote is wrapped in <mark> before rendering, highlighted
  in yellow; panel scrolls to it automatically

https://claude.ai/code/session_016JxWnFc3baeDgkzDgxY6ex
Repository Jeroen1991z/mikeNL
Author Claude <noreply@anthropic.com>
Authored
Committed
Parents 89f5a7fc
Stats 3 files changed , +112 , -32
Part of Legal citation side panel (full-text reader with quote highlight)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-fe1f464a.md from inside the repo you want the change in.

⬇ Download capture-commit-fe1f464a.md