lib.roles.hackernews¶ HN (HackerNews) role for Docutils. django_docutils.lib.roles.hackernews.hackernews_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]¶ Role for linking to hackernews articles. Return type: django_docutils.lib.roles.types.RoleFnReturnValue Parameters: name (str) rawtext (str) text (str) lineno (int) inliner (Inliner) options (dict[str, Any] | None) content (str | None) Examples 15610489: :hn:`15610489` this hackernews article: :hn:`this hackernews article <15610489>`