Allow inlining code blocks with double quotes

This commit is contained in:
Tim
2023-04-07 18:45:43 +02:00
parent 9898bce41a
commit a697f89083
3 changed files with 11 additions and 4 deletions

View File

@ -13,7 +13,8 @@ class Pipeline
$builder = new PipelineBuilder();
$pipeline = $builder
->add(new HtmlEscapeStage())
->add(new ReplaceBlocksStage('<pre><code>', '</code></pre>', '```'))
->add(new ReplaceBlocksStage('<pre><code class="hljs">', '</code></pre>', '```'))
->add(new ReplaceBlocksStage('<code class="hljs">', '</code>', '``'))
->build();
return $pipeline->process($payload);