mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Parse markdown using stimulus controller.
This commit is contained in:
parent
b9a86c6a59
commit
f3680ea7de
4 changed files with 72 additions and 5 deletions
|
@ -68,7 +68,7 @@ class MarkdownParser
|
|||
public function markForRendering(string $markdown, bool $inline_mode = false): string
|
||||
{
|
||||
return sprintf(
|
||||
'<div class="markdown" data-markdown="%s">%s</div>',
|
||||
'<div class="markdown" data-markdown="%s" data-controller="common--markdown">%s</div>',
|
||||
htmlspecialchars($markdown),
|
||||
$this->translator->trans('markdown.loading')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue