docs: fix blockquote text not parsed as markdown (#2700)

See issue #2699.

Blockquote text now renders correctly as markdown.

<img width="718" alt="Screenshot 2024-10-10 at 13 42 26"
src="https://github.com/user-attachments/assets/d39dc04e-a408-4f34-a632-881578856896">

<img width="729" alt="Screenshot 2024-10-10 at 13 42 47"
src="https://github.com/user-attachments/assets/e2686cd0-b39c-402d-b460-6f680d5e6d04">
This commit is contained in:
Mackie Burgess
2024-10-10 14:58:46 +02:00
committed by GitHub
parent e303b873a6
commit 8752dba3cf
2 changed files with 832 additions and 3 deletions
Generated
+830 -1
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -126,9 +126,9 @@ class DefaultRenderer extends Marked.Renderer {
const icon = `<svg class="icon"><use href="/icons.svg#${type}" /></svg>`;
return `<blockquote class="admonition ${type}">\n<span class="admonition-header">${icon}${
label[type]
}</span>${text}</blockquote>\n`;
}</span>${Marked.parse(text)}</blockquote>\n`;
}
return `<blockquote>\n${text}</blockquote>\n`;
return `<blockquote>\n${Marked.parse(text)}</blockquote>\n`;
}
}