thumbnail TODO
This commit is contained in:
parent
ca4d86db99
commit
bfdcd0bfec
|
@ -12,6 +12,8 @@ class Markdown {
|
|||
]);
|
||||
}
|
||||
public function convert(string $text, bool $trim = false): string {
|
||||
// TODO thumbnails
|
||||
$text = str_replace('!thumb', '!', $text);
|
||||
$retval = $this->converter->convert($text);
|
||||
if ($trim) {
|
||||
$retval = Str::words($retval, config('app.brief_limit'), '…');
|
||||
|
|
Loading…
Reference in a new issue