Skip to content

Commit 5e754f1

Browse files
authored
Merge pull request adafruit#2121 from tannewt/markdown_autolink
Add support for converting autolinks to BBCode
2 parents 8066810 + dab345c commit 5e754f1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/convert_release_notes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def text(self, text):
3131
def link(self, link, title, text):
3232
return "[url={}]{}[/url]".format(link, text)
3333

34+
def autolink(self, link, is_email):
35+
if not is_email:
36+
return "[url={}]{}[/url]".format(link, link)
37+
return link
38+
3439
def header(self, text, level, raw):
3540
return "[b][size=150]{}[/size][/b]\n".format(text)
3641

0 commit comments

Comments
 (0)