Add support for converting autolinks to BBCode

crypto-aes
Scott Shawcroft 3 years ago
parent fca440fb66
commit dab345ce58
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
  1. 5
      tools/convert_release_notes.py

@ -31,6 +31,11 @@ class AdafruitBBCodeRenderer:
def link(self, link, title, text):
return "[url={}]{}[/url]".format(link, text)
def autolink(self, link, is_email):
if not is_email:
return "[url={}]{}[/url]".format(link, link)
return link
def header(self, text, level, raw):
return "[b][size=150]{}[/size][/b]\n".format(text)

Loading…
Cancel
Save