Skip to content

Commit

Permalink
fix: icon dispay in callout with codeblocks (#567)
Browse files Browse the repository at this point in the history
Fix #543

Adding a condition to not ignore callouts containing codeblocks in the text processing of markdown.
  • Loading branch information
Arthur-Gallez authored Oct 15, 2024
1 parent 173c7ff commit 529134a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/markdown-processors/icon-in-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ export const processIconInTextMarkdown = (
) => {
// Ignore if codeblock
const codeElement = element.querySelector('pre > code');
if (codeElement) {
const callOut = element.querySelector('.callout');
if (codeElement && !callOut) {
return;
}

Expand Down

0 comments on commit 529134a

Please sign in to comment.