Static preview. Server-backed interactions are available only in a local checkout.

Render Targets

One Carve source, four outputs. Beyond toHtml(), laravel-carve exposes toText() for indexing, toMarkdown() for interop with Markdown tooling, and toAnsi() for terminal output. All four are shown below from the same source.

$carve->toHtml($source);      // web
$carve->toText($source);      // search / excerpts
$carve->toMarkdown($source);  // Markdown interop
$carve->toAnsi($source);      // terminal / CLI

Carve source

# Release notes

Carve /renders/ to *four* targets from one source.

- [x] HTML for the web
- [x] Plain text for search
- [ ] Your custom renderer

> One syntax, one meaning.

```php
$html = $carve->toHtml($source);
```

See the [Carve org](https://github.com/markup-carve).

toHtml()

Release notes #

Carve renders to four targets from one source.

  • HTML for the web
  • Plain text for search
  • Your custom renderer

One syntax, one meaning.

$html = $carve->toHtml($source);

See the Carve org.

toMarkdown()

# Release notes

Carve *renders* to **four** targets from one source.

- [x] HTML for the web
- [x] Plain text for search
- [ ] Your custom renderer

> One syntax, one meaning.

```php
$html = $carve->toHtml($source);
```

See the [Carve org](https://github.com/markup-carve).

toText()

Release notes

Carve renders to four targets from one source.

- HTML for the web
- Plain text for search
- Your custom renderer

"One syntax, one meaning."

$html = $carve->toHtml($source);

See the Carve org.

toAnsi()

ANSI escape sequences, colourised client-side with ansi_up (falls back to the raw sequences if the library does not load).

Release notes
═════════════

Carve renders to four targets from one source.

☑ HTML for the web
☑ Plain text for search
☐ Your custom renderer

│ One syntax, one meaning.

┌── php 
  $html = $carve->toHtml($source);

See the Carve org (https://github.com/markup-carve).