@@ -71,7 +71,7 @@ async def parse_emoji(self):
71
71
match = re .search (p , self .content )
72
72
73
73
def strip_preserve (self ):
74
- p = r'<span class="chatlog__markdown-preserve">(.*? )</span>'
74
+ p = r'<span class="chatlog__markdown-preserve">(.*)</span>'
75
75
r = '%s'
76
76
77
77
pattern = re .compile (p )
@@ -124,15 +124,15 @@ def order_list_markdown_to_html(self):
124
124
self .content = html
125
125
126
126
def parse_normal_markdown (self ):
127
- self .order_list_markdown_to_html ()
127
+ # self.order_list_markdown_to_html()
128
128
holder = (
129
129
[r"__(.*?)__" , '<span style="text-decoration: underline">%s</span>' ],
130
130
[r"\*\*(.*?)\*\*" , '<strong>%s</strong>' ],
131
131
[r"\*(.*?)\*" , '<em>%s</em>' ],
132
132
[r"~~(.*?)~~" , '<span style="text-decoration: line-through">%s</span>' ],
133
- [r"###\s(.*?)\n" , '<h3>%s</h1>' ],
134
- [r"##\s(.*?)\n" , '<h2>%s</h1>' ],
135
- [r"#\s(.*?)\n" , '<h1>%s</h1>' ],
133
+ # [r"###\s(.*?)\n", '<h3>%s</h1>'],
134
+ # [r"##\s(.*?)\n", '<h2>%s</h1>'],
135
+ # [r"#\s(.*?)\n", '<h1>%s</h1>'],
136
136
[r"\|\|(.*?)\|\|" , '<span class="spoiler spoiler--hidden" onclick="showSpoiler(event, this)"> <span '
137
137
'class="spoiler-text">%s</span></span>' ],
138
138
)
@@ -309,7 +309,7 @@ def order_list_html_to_markdown(content):
309
309
return html
310
310
311
311
def return_to_markdown (self , content ):
312
- content = self .order_list_html_to_markdown (content )
312
+ # content = self.order_list_html_to_markdown(content)
313
313
holders = (
314
314
[r"<strong>(.*?)</strong>" , '**%s**' ],
315
315
[r"<em>([^<>]+)</em>" , '*%s*' ],
0 commit comments