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
# 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).
# 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).
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.
ANSI escape sequences, colourised client-side with ansi_up (falls back to the raw sequences if the library does not load).
[1m[95mRelease notes[0m [95m═════════════[0m Carve [3mrenders[0m to [1mfour[0m targets from one source. [32m☑[0m HTML for the web [32m☑[0m Plain text for search [90m☐[0m Your custom renderer [36m[2m│[0m One syntax, one meaning. [2m┌── php [0m [97m $html = $carve->toHtml($source);[0m See the [4m[34mCarve org[0m[2m (https://github.com/markup-carve)[0m.