Add Markdown Preview tool - #11
Closed
02karthik wants to merge 1 commit into
Closed
Conversation
A single-file, fully-offline live Markdown editor with split-pane preview — the most on-brand tool for a markdown-native workspace, and distinct from the existing markdown-table (which only builds tables). Features: - Live split-pane editor + rendered preview (mobile: Write/Preview tabs) - Renders headings, bold/italic/strikethrough, inline & fenced code, lists, task lists, blockquotes, GFM tables, links, data-URI images, and horizontal rules - Formatting toolbar with Ctrl/Cmd+B / +I shortcuts and Tab-to-indent - Word / character / line counts and reading-time estimate - Copy Markdown, Copy HTML, and Clear; draft persisted in localStorage - Follows the Hillnote design system: azure primary, mist canvas, Manrope display + Inter body, 24px card radius All parsing is done in-browser; input is HTML-escaped before rendering and link schemes are sanitized. No network, analytics, or phone-home. Registered in tools.json and bumped catalogVersion to 22. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011u9VQkyah2vrgguVtm6x2W
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this tool?
Markdown Preview is a single-file, fully-offline live Markdown editor: you write Markdown on the left and watch it render instantly on the right. It's for anyone drafting notes, docs, or READMEs who wants to see the formatted result as they type — a natural fit for a markdown-native knowledge workspace, and distinct from the existing
markdown-table(which only generates table syntax).Why this tool? Hillnote is a markdown-native workspace whose signature capture card turns any source into clean Markdown — yet the catalog had no live Markdown editor. This fills that gap in the Writing category.
What it does
- [x]), blockquotes, GFM pipe tables with alignment, links, data-URI images, and horizontal rules.Ctrl/⌘+B/Ctrl/⌘+Ishortcuts and Tab-to-indent.localStorageundermarkdown-preview:v1.#4d63ffprimary, cool-mist canvas, near-black ink, Manrope display + Inter body, 24px card radius.Checklist
markdown-preview/index.htmlwith all CSS + JS inline.fetch, orimport.screenshots/markdown-preview.webp(vianpm run screenshot).tools.json(dirmatches the folder name).catalogVersion(21 → 22).versionis1.npm run validatepasses locally (✓ catalog valid — 28 tools, catalogVersion 22, 0 warnings).Notes for reviewers
javascript:and other unknown schemes fall back to#; images only load inlinedata:image/…URIs and otherwise degrade to their alt text, so nothing appears broken under the app's CSP.my_var_name) are never mangled. I verified rendering across 17 cases (headings, emphasis, code, lists, task lists, quotes, tables, links, images, escaping, XSS-URL sanitization, paragraphs).Generated by Claude Code