Markdown Document

This class is used to merge multiple PHP Markdown content into one full string so it can be saved as .md file.


Usage

use BinaryTorch\PhpDown\Link;
use BinaryTorch\PhpDown\Image;
use BinaryTorch\PhpDown\Markdown;

$markdown = Markdown::make([
    Link::make('link-alt', 'link-url'),
    Image::make('image alt', 'image-url'),
    ...
]);

echo $markdown->render();

Output:

[link-alt](link-url)
![image alt](image-url)