Skip to content

Commit

Permalink
Insert autolink-concat directive into notebooks if sphinx_codeautolin…
Browse files Browse the repository at this point in the history
…k is loaded
  • Loading branch information
mgeier committed Dec 8, 2021
1 parent 9a9ee2d commit 01cc76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nbsphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,8 @@ def parse(self, inputstring, document):
env.config.nbsphinx_prolog).render(env=env)
rst.Parser.parse(self, prolog, document)
rst.Parser.parse(self, '.. highlight:: none', document)
if 'sphinx_codeautolink' in env.config.extensions:
rst.Parser.parse(self, '.. autolink-concat:: on', document)
rst.Parser.parse(self, rststring, document)
if env.config.nbsphinx_epilog:
epilog = exporter.environment.from_string(
Expand Down

0 comments on commit 01cc76e

Please sign in to comment.