@@ -71,7 +71,7 @@ async def parse_emoji(self):
7171 match = re .search (p , self .content )
7272
7373 def strip_preserve (self ):
74- p = r'<span class="chatlog__markdown-preserve">(.*? )</span>'
74+ p = r'<span class="chatlog__markdown-preserve">(.*)</span>'
7575 r = '%s'
7676
7777 pattern = re .compile (p )
@@ -124,15 +124,15 @@ def order_list_markdown_to_html(self):
124124 self .content = html
125125
126126 def parse_normal_markdown (self ):
127- self .order_list_markdown_to_html ()
127+ # self.order_list_markdown_to_html()
128128 holder = (
129129 [r"__(.*?)__" , '<span style="text-decoration: underline">%s</span>' ],
130130 [r"\*\*(.*?)\*\*" , '<strong>%s</strong>' ],
131131 [r"\*(.*?)\*" , '<em>%s</em>' ],
132132 [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>'],
136136 [r"\|\|(.*?)\|\|" , '<span class="spoiler spoiler--hidden" onclick="showSpoiler(event, this)"> <span '
137137 'class="spoiler-text">%s</span></span>' ],
138138 )
@@ -309,7 +309,7 @@ def order_list_html_to_markdown(content):
309309 return html
310310
311311 def return_to_markdown (self , content ):
312- content = self .order_list_html_to_markdown (content )
312+ # content = self.order_list_html_to_markdown(content)
313313 holders = (
314314 [r"<strong>(.*?)</strong>" , '**%s**' ],
315315 [r"<em>([^<>]+)</em>" , '*%s*' ],
0 commit comments