mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
fix html conversion issue with code blocks (#7943)
This commit is contained in:
parent
a8ebaa4cea
commit
ff8a0a2deb
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ export function fromHtml(html: string, hashtagNames?: string[]): string | null {
|
|||
// block code (<pre><code>)
|
||||
case 'pre': {
|
||||
if (node.childNodes.length === 1 && node.childNodes[0].nodeName === 'code') {
|
||||
text += '```\n';
|
||||
text += '\n```\n';
|
||||
text += getText(node.childNodes[0]);
|
||||
text += '\n```\n';
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue