forked from rDrama/rDrama
sfd
parent
469040917e
commit
ea3a9e3896
|
@ -120,4 +120,12 @@ class Renderer(HTMLRenderer):
|
||||||
def render_redditor_mention(self, token):
|
def render_redditor_mention(self, token):
|
||||||
space = token.target[0]
|
space = token.target[0]
|
||||||
target = token.target[1]
|
target = token.target[1]
|
||||||
return f'{space}<a href="https://old.reddit.com/u/{target}" rel="nofollow noopener noreferrer" class="d-inline-block">u/{target}</a>'
|
return f'{space}<a href="https://old.reddit.com/u/{target}" rel="nofollow noopener noreferrer" class="d-inline-block">u/{target}</a>'
|
||||||
|
|
||||||
|
class Renderer(HTMLRenderer):
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
super().__init__( )
|
||||||
|
|
||||||
|
for i in kwargs:
|
||||||
|
self.__dict__[i] = kwargs[i]
|
Loading…
Reference in New Issue