# XWUIMarkdownEditor

Markdown source editor. Composes `XWUIScriptEditor` (Monaco engine) locked to the `markdown` grammar, exposing a Markdown-shaped surface (`getMarkdown` / `setMarkdown`, an `onChange` hook). The "edit" half of `XWUIMarkdown`.

## Basic Usage

Editable Monaco surface with an `onChange` hook.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Editable Monaco surface with an `onChange` hook.
```

## Read-Only View

`mode: 'view'` for a highlighted, non-editable source pane.

```example
file: examples/ReadOnlyView.ts
html: examples/ReadOnlyView.html
title: Read-Only View
description: `mode: 'view'` for a highlighted, non-editable source pane.
```

## Release Notes Editor

Authoring a CHANGELOG entry on the CodeMirror 6 engine with tables, a code fence, and an `onChange` hook.

```example
file: examples/ReleaseNotesEditor.ts
html: examples/ReleaseNotesEditor.html
title: Release Notes Editor
description: Editable release notes on the `codemirror6` engine with rich Markdown.
```

## README Preview (lightweight)

A read-only README pane on the highlight.js engine, fed via the `markdown` alias field.

```example
file: examples/ReadmePreviewLite.ts
html: examples/ReadmePreviewLite.html
title: README Preview (lightweight)
description: View-mode pane on the `highlightjs` engine using the `markdown` alias.
```

```api
```
