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:

Examples

15610489:

:hn:`15610489`

this hackernews article:

:hn:`this hackernews article <15610489>`