Closes #130 - Incident texts now support Markdown
This commit is contained in:
@@ -53,6 +53,17 @@ class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableI
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a Markdown formatted version of the status.
|
||||
* @return string
|
||||
*/
|
||||
public function getFormattedMessageAttribute()
|
||||
{
|
||||
$parseDown = new ParsedownExtra();
|
||||
|
||||
return $parseDown->text($this->message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the transformer instance.
|
||||
* @return CachetHQ\Cachet\Transformers\IncidentTransformer
|
||||
|
||||
Reference in New Issue
Block a user