Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration
This commit is contained in:
@@ -92,7 +92,7 @@ def _media_pass(html):
|
||||
if not MENTION_PATTERN.search(text):
|
||||
continue
|
||||
escaped = mistune.escape(text)
|
||||
replaced = MENTION_PATTERN.sub(lambda m: f'<a class="mention" href="/mensen/{m.group(1)}">@{m.group(1)}</a>', escaped)
|
||||
replaced = MENTION_PATTERN.sub(lambda m: f'<a class="mention" href="/people/{m.group(1)}">@{m.group(1)}</a>', escaped)
|
||||
fragment = BeautifulSoup(replaced, "html.parser")
|
||||
node.replace_with(*list(fragment.contents))
|
||||
return str(soup)
|
||||
|
||||
Reference in New Issue
Block a user