Skip to content

Commit c19a4c1

Browse files
committed
filter out headings
1 parent 63c62ac commit c19a4c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/worker/src/worker.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ async function markdown_to_html(s: string) {
4040
.replace(/<ul>/g, '')
4141
.replace(/<\/ul>/g, '')
4242
.replace(/<li>/g, '')
43-
.replace(/<\/li>/g, '');
43+
.replace(/<\/li>/g, '')
44+
.replace(/<h1>/g, '')
45+
.replace(/<\/h1>/g, '')
46+
.replace(/<h2>/g, '')
47+
.replace(/<\/h2>/g, '')
48+
.replace(/<h3>/g, '')
49+
.replace(/<\/h3>/g, '');
4450
}
4551

4652
export default {

0 commit comments

Comments
 (0)