mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
UI: minor text fixes
This commit is contained in:
parent
424d0c1f20
commit
49ab8d540f
1 changed files with 2 additions and 2 deletions
|
|
@ -498,10 +498,10 @@ def parse_markups(markups: list):
|
|||
logger.trace(markup)
|
||||
if markup["type"] == "A":
|
||||
if markup["anchorType"] == "LINK":
|
||||
template = jinja_env.from_string('<a class="text-base" style="text-decoration: underline;" rel="{{rel}}" title="{{title}}" href="{{href}}" target="_blank">{{text}}</a>')
|
||||
template = jinja_env.from_string('<a style="text-decoration: underline;" rel="{{rel}}" title="{{title}}" href="{{href}}" target="_blank">{{text}}</a>')
|
||||
template = template.render(raw_render(rel=markup.get("rel", ""), title=markup.get("title", ""), href=markup["href"]))
|
||||
elif markup["anchorType"] == "USER":
|
||||
template = jinja_env.from_string('<a class="text-base" style="text-decoration: underline;" href="https://medium.com/u/{{userId}}">{{text}}</a>')
|
||||
template = jinja_env.from_string('<a style="text-decoration: underline;" href="https://medium.com/u/{{userId}}">{{text}}</a>')
|
||||
template = template.render(userId=markup["userId"])
|
||||
else:
|
||||
logger.error(f"Can't proccess 'anchorType': {markup['anchorType']}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue