Skip to content

Commit aedcdd2

Browse files
committed
remove ol elements
1 parent 55e9204 commit aedcdd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/worker/src/worker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ function wrapPromise<T>(func: promiseFunc<T>, time = 1000) {
3232
*/
3333
async function markdown_to_html(s: string) {
3434
const parsed = await marked.parse(s);
35-
return parsed.replace(/<p>/g, '').replace(/<\/p>/g, '');
35+
return parsed
36+
.replace(/<p>/g, '')
37+
.replace(/<\/p>/g, '')
38+
.replace(/<ol>/g, '')
39+
.replace(/<\/ol>/g, '');
3640
}
3741

3842
export default {

0 commit comments

Comments
 (0)