1
0

Blog: Don't show footnotes in post preview

This is the worst solution I possible could've done for this.
This commit is contained in:
Ryan Fox 2021-11-15 00:05:04 -08:00
parent c9f100c6d8
commit d0aee175ea
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E

View File

@ -6,7 +6,9 @@ from datetime import datetime
from email import utils
def remove_tags(text):
return re.sub(re.compile('<.*?>'), "", text)
text = re.sub(re.compile('>[0-9]<'), "", text)
text = re.sub(re.compile('<.*?>'), "", text)
return text
def get_path(path, ext_in, ext_out):
path = path[len("pages"):]