mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
5ce7be4086
1 changed files with 2 additions and 2 deletions
|
@ -285,11 +285,11 @@ def allowlist_html(html: str, a_target='_blank') -> str:
|
|||
clean_html = re_strikethough.sub(r'<s>\1</s>', clean_html)
|
||||
|
||||
# replace subscript markdown left in HTML
|
||||
re_subscript = re.compile(r'~(.*)~')
|
||||
re_subscript = re.compile(r'~(\S+)~')
|
||||
clean_html = re_subscript.sub(r'<sub>\1</sub>', clean_html)
|
||||
|
||||
# replace superscript markdown left in HTML
|
||||
re_superscript = re.compile(r'\^(.*)\^')
|
||||
re_superscript = re.compile(r'\^(\S+)\^')
|
||||
clean_html = re_superscript.sub(r'<sup>\1</sup>', clean_html)
|
||||
|
||||
return clean_html
|
||||
|
|
Loading…
Add table
Reference in a new issue