forked from github/pelican
Correct new flake8 warnings
This commit is contained in:
parent
a982e0c4f4
commit
5a19887a22
4 changed files with 7 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ class Pygments(Directive):
|
|||
parsed = highlight('\n'.join(self.content), lexer, formatter)
|
||||
return [nodes.raw('', parsed, format='html')]
|
||||
|
||||
|
||||
directives.register_directive('code-block', Pygments)
|
||||
directives.register_directive('sourcecode', Pygments)
|
||||
|
||||
|
|
@ -90,4 +91,5 @@ def abbr_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
|
|||
expl = m.group(1)
|
||||
return [abbreviation(abbr, abbr, explanation=expl)], []
|
||||
|
||||
|
||||
roles.register_local_role('abbr', abbr_role)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue