Skip to content

Commit 9cd2070

Browse files
committed
fix code
1 parent e96d0cb commit 9cd2070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/worker/src/worker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function markdown_to_html(s: string) {
3535
return parsed
3636
.replace(/<p>/g, '')
3737
.replace(/<\/p>/g, '')
38-
.replace(/<ol>/g, '')
38+
.replace(/<ol.*>/g, '')
3939
.replace(/<\/ol>/g, '')
4040
.replace(/<ul>/g, '')
4141
.replace(/<\/ul>/g, '')
@@ -104,6 +104,7 @@ export default {
104104
return new Response('ok');
105105
}
106106
if ('response' in response) {
107+
console.log(await markdown_to_html(response.response ?? ''));
107108
await bot.reply(await markdown_to_html(response.response ?? ''), 'HTML');
108109
}
109110
break;

0 commit comments

Comments
 (0)