Skip to content

Commit

Permalink
allow html in artist descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Nov 27, 2023
1 parent 293fca2 commit 1ee71aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/Libraries/Markdown/OsuMarkdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class OsuMarkdown
];

const PRESETS = [
'artist' => [
'commonmark' => [
'html_input' => 'allow',
],
],
'changelog_entry' => [
'commonmark' => [
'html_input' => 'allow',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/artists/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="artist__description">
<h1>{{ $artist->name }}</h1>

{!! markdown($artist->description) !!}
{!! markdown($artist->description, 'artist') !!}
</div>
@if (count($json['albums']) > 0)
<div class="artist__albums">
Expand Down

0 comments on commit 1ee71aa

Please sign in to comment.