Markdown Editor
A distraction-free, split-screen Markdown editor with real-time rendering, synchronous scrolling, Base64 image pasting, and an automated ASCII table generator.
About
Writing in Markdown allows for structural precision without the bloat of rich-text editors. However, the lack of immediate visual feedback often leads to syntax errors that are only discovered post-publication. This tool bridges that gap by providing a deterministic rendering engine alongside a high-performance text editor.
We designed this environment for developers and technical writers who require ISO-compliant Markdown handling. It features a proprietary ScrollSync algorithm that maps the viewport percentage of the editor (Ve) directly to the preview pane (Vp) using the formula hcurrenthtotal - hview, ensuring context is never lost during long document reviews.
Formulas
The core rendering engine utilizes a multi-pass Regular Expression heuristic to tokenize and parse text streams. The Scroll Sync mechanism ensures alignment via:
This linear interpolation prevents the "drift" commonly found in inferior editors when handling images or block-level elements of varying heights.
Reference Data
| Element | Markdown Syntax | Rendered Logic |
|---|---|---|
| Headers | # H1 to ###### H6 | Semantic <h1>-<h6> tags |
| Emphasis | **bold** or *italic* | <strong> or <em> |
| Lists | - Item or 1. Item | <ul> or <ol> |
| Code | `inline` or ```block``` | Pre-formatted text with monospace font |
| Links | [text](url) | Standard anchor tags |
| Images |  | Embedded images (supports Base64) |
| Blockquote | > Quote | Indented citation block |
| Tables | | Head | ... | | --- | ... | | HTML Table structure |