(name, rawtext, text, lineno, inliner, options={}, content=[])
return [node], []
Link to a GitHub issue.
Link to a GitHub issue.
Link to a GitHub issue .
def gh_role(name, rawtext, text, lineno, inliner, options={}, content=[]):  # noqa: B006
    """Link to a GitHub issue."""
    try:
        # issue/PR mode (issues/PR-num will redirect to pull/PR-num)
        int(text)
    except ValueError:
        # direct link mode
        slug = text
    else:
        slug = "issues/" + text
    text = "#" + text
    ref = "https://github.com/NeuroTechX/moabb/" + slug
    set_classes(options)
    node = reference(rawtext, text, refuri=ref, **options)
    return [node], []
def gh_role ( name , rawtext , text , lineno , inliner , options = { } , content = [ ] ) : # noqa: B006 try : # issue/PR mode (issues/PR-num will redirect to pull/PR-num) int ( text ) except ValueError : # direct link mode slug = text else : slug = "issues/" + text text = "#" + text ref = "https://github.com/NeuroTechX/moabb/" + slug set_classes ( options ) node = reference ( rawtext , text , refuri = ref , * * options ) return [ node ] , [ ]