---
title: WaqfTech Markdown Editor — Lightweight React markdown editor with natural
  Arabic Islamic typography and guided Quran insertion — by Jad Madi (@jadmadi)
description: Lightweight React markdown editor and previewer purpose-built for
  Arabic and Islamic texts. Features a two-row modular toolbar, automatic
  typography transforms for Quranic verses ﴿ ﴾ and Hadith citations « », guided
  surah search, and classical calligraphic ligatures.
href: /project/waqftech-markdown-editor/
author: Jad Madi
category: Islamic Tech & Tools
domain: Islamic Tech & Waqf
status: In Development
license: WaqfDPL-Isnad 1.0
year: "2026"
version: 1.2.0
---

# WaqfTech Markdown Editor — Lightweight React markdown editor with natural Arabic Islamic typography and guided Quran insertion

Lightweight React markdown editor and previewer purpose-built for Arabic and Islamic texts. Features a two-row modular toolbar, automatic typography transforms for Quranic verses ﴿ ﴾ and Hadith citations « », guided surah search, and classical calligraphic ligatures.

## Project Overview

- **Website**: https://jadmadi.net/project/waqftech-markdown-editor/
- **Version**: 1.2.0
- **Live Platform**: https://markdown.waqf.dev
- **Repository**: https://github.com/WaqfTech/waqftech-markdown-editor
- **Documentation**: https://github.com/WaqfTech/waqftech-markdown-editor/blob/main/README.md
- **Package**: https://www.npmjs.com/package/@waqftech/markdown-editor
- **Domain**: Islamic Tech & Waqf
- **Category**: Islamic Tech & Tools
- **Status**: In Development
- **Year**: 2026
- **License**: WaqfDPL-Isnad 1.0 (waqf)
- **Author**: [@JadMadi](https://x.com/jadmadi)

## Quick Install & Run

### Linux & macOS

```bash
pnpm add @waqftech/markdown-editor comark @comark/react lucide-react
```

### Windows (PowerShell)

```powershell
pnpm add @waqftech/markdown-editor comark @comark/react lucide-react
```

## The Problem It Solves

Standard markdown editors treat Arabic as plain bidirectional text, lacking native handling of Quranic punctuation, Aya numbering brackets, Hadith quotation conventions, and classical Arabic ligature abbreviations.

## The Solution

An intelligent React editor with real-time text normalization that formats Quranic verse brackets ﴿ ﴾, Hadith quotation marks « », and honorific ligatures on typing, paired with a guided surah and ayah lookup palette.

## Key Features & Capabilities

- Two-row modular toolbar: standard markdown formatting plus dedicated Islamic text insertion
- Automatic conversion of verse syntax to classical ornamental brackets ﴿ ... ﴾ and Hadith quotes « ... »
- Guided interactive Quran search palette (/quran and \) with single ayah, range, or full surah insertion
- Cursor-following floating popover positioning using mirror-div caret calculation
- Semantic tag transformation for structured <aya ref="..."> and <hadith grading="..."> blocks
- Direct insertion of classical Islamic honorific ligatures (ﷺ, ﷻ, ﷽, ۞, ﷲ)
- Built-in safe renderer (DefaultMarkdownRenderer) powered by Comark with Edit/Preview toggling
- Auto-expanding textarea height with customizable minimum and maximum bounds

## Technical Specifications & Architecture

- **Languages**: TypeScript, React, CSS
- **Frameworks / Libraries**: React, Comark, Lucide Icons, Vite, Tailwind CSS
- **Architecture**: Client-side typography transforms, two-row modular toolbar, Comark AST pipeline, and zero server persistence
- **License Model**: WaqfDPL-Isnad 1.0

## Frequently Asked Questions

### Can I use this component in React projects?

Yes. Install @waqftech/markdown-editor along with peer dependencies (comark, @comark/react, lucide-react) using pnpm add @waqftech/markdown-editor comark @comark/react lucide-react, import the stylesheet @waqftech/markdown-editor/styles.css, and render <MarkdownField />.

### Does it support Quran verse search offline or via API?

It supports both: direct syntax lookup like /quran 1:2 and a guided search palette powered by the high-performance kv-quran edge API on Cloudflare Workers.

### What license governs this package?

It is released under the Waqf Digital Public License (WaqfDPL-Isnad 1.0), dedicated as continuous digital endowment (Waqf) for the sake of Allah with attribution required.

## Links & References

- Project Page on Crosscurrent Code: https://jadmadi.net/project/waqftech-markdown-editor/
- Full Projects Directory: https://jadmadi.net/projects/
- Author Profile: https://jadmadi.net/about/
