mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add Pygments support to the default sourcecode directive.
It is now possible to have highlited sourcecode using the ``::`` syntax.
This commit is contained in:
parent
96c42c0aa5
commit
95b44ef8bf
2 changed files with 2 additions and 1 deletions
|
|
@ -35,3 +35,4 @@ class Pygments(Directive):
|
|||
return [nodes.raw('', parsed, format='html')]
|
||||
|
||||
directives.register_directive('code-block', Pygments)
|
||||
directives.register_directive('sourcecode', Pygments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue