Skip to content

Commit bd7ae35

Browse files
committed
Add reference to the original code from code-block directive
1 parent 936859d commit bd7ae35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jupyter_sphinx/execute.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def run(self):
187187
self.assert_has_content()
188188
content = self.content
189189

190+
# The code fragment is taken from CodeBlock directive almost unchanged:
191+
# https://github.com/sphinx-doc/sphinx/blob/0319faf8f1503453b6ce19020819a8cf44e39f13/sphinx/directives/code.py#L134-L148
190192
emphasize_linespec = self.options.get('emphasize-lines')
191193
if emphasize_linespec:
192194
try:

0 commit comments

Comments
 (0)