<?php

namespace Laravel\Nova\Fields\Markdown;

use League\CommonMark\CommonMarkConverter;

class ZeroPreset implements MarkdownPreset
{
    /**
     * Convert the given content from markdown to HTML.
     *
     * @return string
     */
    public function convert(string $content)
    {
        return (string) (new CommonMarkConverter(['html_input' => 'strip']))->convert($content);
    }
}
