mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Remove unused markdown method
This commit is contained in:
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Models;
|
namespace FireflyIII\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use League\CommonMark\CommonMarkConverter;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Note.
|
* Class Note.
|
||||||
@@ -44,17 +43,6 @@ class Note extends Model
|
|||||||
/** @var array */
|
/** @var array */
|
||||||
protected $fillable = ['title', 'text'];
|
protected $fillable = ['title', 'text'];
|
||||||
|
|
||||||
/**
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getMarkdownAttribute(): string
|
|
||||||
{
|
|
||||||
$converter = new CommonMarkConverter;
|
|
||||||
|
|
||||||
return $converter->convertToHtml($this->text);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user