# ALTO Markdown

HTML: [altophp.com/markdown](https://altophp.com/markdown/)

ALTO Markdown converts Markdown to safe HTML and keeps a source-backed
document model when an application needs to inspect, lint, or edit content.
Use direct conversion for one result; open a document when later work depends
on its structure.

```php
use Alto\Markdown\Markdown;

$html = Markdown::github()->toHtml("# Hello\n\nWelcome.\n");
```

The conversion returns `<h1>Hello</h1>` followed by a paragraph containing
`Welcome.`. Raw HTML is escaped and unsafe URL schemes are rejected by default.

## Documentation

- [Installation](https://altophp.com/markdown/installation.md): install the package and verify the runtime.
- [Getting started](https://altophp.com/markdown/getting-started.md): render and inspect one document.
- [Conversion](https://altophp.com/markdown/conversion.md): produce HTML or Markdown output.
- [Documents](https://altophp.com/markdown/documents.md): inspect, query, measure, and edit parsed documents.
- [Quality](https://altophp.com/markdown/quality.md): lint, fix, and format Markdown.
- [Extensions](https://altophp.com/markdown/extensions.md): choose or create trusted capabilities.
- [Syntax](https://altophp.com/markdown/syntax.md): add authoring syntax.
- [Rendering](https://altophp.com/markdown/rendering.md): control document and HTML output.
- [Resources](https://altophp.com/markdown/resources.md): resolve imported, included, and embedded content.
- [Security](https://altophp.com/markdown/security.md): define input, HTML, and resource boundaries.
- [Errors](https://altophp.com/markdown/errors.md): catch recoverable failures.
- [Performance](https://altophp.com/markdown/performance.md): select and measure the correct processing path.
- [Compliance](https://altophp.com/markdown/compliance.md): review supported Markdown specifications.

The core has no runtime Composer dependencies. It supports CommonMark, GitHub
Flavored Markdown, and GitHub-oriented documents. Extensions run as trusted
application code and receive resource access only through an injected resolver.

---

Next: [Installation](https://altophp.com/markdown/installation.md)

---

ALTO\MARKDOWN: [altophp.com/markdown](https://altophp.com/markdown/)
ALTO(PHP): [altophp.com](https://altophp.com/)
