for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sioen\JsonToHtml;
use \Michelf\Markdown;
final class HeadingConverter implements Converter
{
public function toHtml(array $data)
return Markdown::defaultTransform('## ' . $data['text']);
}
public function matches($type)
return $type === 'heading';