• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
elnaddar

elnaddar

online-md

Public
Like
online-md
Home
Code
4
backend
1
frontend
4
shared
1
README.md
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/2/2025
Viewing readonly version of main branch: v9
View latest version
README.md

Markdown Editor

A feature-rich online markdown editor with dual editing modes and advanced functionality.

Features

Editing Modes

  1. Split Screen Mode: Live preview with synchronized scrolling
  2. WYSIWYG Hybrid Mode: Rich text editing with markdown output

Additional Features

  • RTL/LTR Support: Switch between right-to-left and left-to-right text direction
  • Auto-persistence: Content automatically saved to localStorage
  • URL Sharing: Share documents via compressed URLs (no database required)
  • Synchronized Scrolling: Both panes scroll together in split mode
  • Mode Switching: Seamlessly switch between editing modes while preserving content

Project Structure

β”œβ”€β”€ backend/
β”‚   └── index.ts           # Hono server for static file serving
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html         # Main application template
β”‚   β”œβ”€β”€ index.tsx          # React application entry point
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx        # Main application component
β”‚   β”‚   β”œβ”€β”€ SplitEditor.tsx # Split screen editor
β”‚   β”‚   β”œβ”€β”€ WysiwygEditor.tsx # WYSIWYG editor
β”‚   β”‚   └── Toolbar.tsx    # Editor toolbar
β”‚   └── style.css          # Application styles
β”œβ”€β”€ shared/
β”‚   └── utils.ts           # Shared utilities for compression/decompression
└── README.md

Technology Stack

  • Frontend: React 18.2.0 with TypeScript
  • Backend: Hono for static file serving
  • Markdown: marked for parsing, DOMPurify for sanitization
  • WYSIWYG: Quill.js for rich text editing
  • Styling: TailwindCSS
  • Compression: pako for gzip compression
  • Storage: localStorage for persistence

Usage

  1. Start writing markdown in either mode
  2. Switch between split-screen and WYSIWYG modes using the toolbar
  3. Toggle RTL/LTR text direction as needed
  4. Share your work using the share button (generates compressed URL)
  5. Content is automatically saved and restored on page reload
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.