akkudoktoreos.server.dash.markdown.render_link
- akkudoktoreos.server.dash.markdown.render_link(self: RendererHTML, tokens: List[Token], idx: int, options: dict, env: dict) str
Custom renderer for Markdown links.
Adds the target attribute to open links in a new tab.
- Parameters:
self – The renderer instance.
tokens – List of tokens to be rendered.
idx – Index of the current token.
options – Rendering options.
env – Environment sandbox for plugins.
- Returns:
The rendered token as a string.