Skip to content

editor preview: apply github-markdown-css + highlight.js styling - #98

Merged
mitschabaude merged 6 commits into
mainfrom
pretty-note-shares
Mar 3, 2026
Merged

editor preview: apply github-markdown-css + highlight.js styling#98
mitschabaude merged 6 commits into
mainfrom
pretty-note-shares

Conversation

@mitschabaude

@mitschabaude mitschabaude commented Mar 3, 2026

Copy link
Copy Markdown
Member

Applies GitHub-style markdown rendering to both the share viewer and the editor preview.

Share viewer

  • Use github-markdown-css for GitHub-matching content styles
  • Add syntax highlighting via highlight.js (GitHub theme)
  • Full-width white layout, drop gray backdrop card
  • Match GitHub content width (861px)
  • Fix: don't parse currency amounts as inline math ($ followed by digit/comma)

Editor preview

  • Import github-markdown-css/github-markdown-light.css and highlight.js/styles/github.css in src/main.tsx
  • Add markdown-body class to the preview div in Editor.tsx
  • Add a targeted override in styles.css to keep font/color inheriting from the card layout
  • Remove the now-redundant custom heading, paragraph, pre, code, and blockquote rules

@vercel

vercel Bot commented Mar 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vibenote Ready Ready Preview, Comment Mar 3, 2026 4:54pm

@mitschabaude
mitschabaude merged commit 01fd32a into main Mar 3, 2026
3 checks passed
@mitschabaude
mitschabaude deleted the pretty-note-shares branch March 3, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant