Skip to content

Commit fae70bf

Browse files
authored
Merge pull request #181 from philj56/master
Fix syntax highlighting logic.
2 parents 28468f2 + 75f63d4 commit fae70bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jupyter_sphinx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def setup(app):
282282

283283
# For syntax highlighting
284284
app.add_lexer("ipythontb", IPythonTracebackLexer)
285-
app.add_lexer("ipython", IPython3Lexer)
285+
app.add_lexer("ipython3", IPython3Lexer)
286286

287287
app.connect("builder-inited", builder_inited)
288288
app.connect("build-finished", build_finished)

jupyter_sphinx/execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def apply(self):
204204

205205
# Highlight the code cells now that we know what language they are
206206
for node in nodes:
207-
source = node.children[0]
207+
source = node.children[0].children[0]
208208
source.attributes["language"] = lexer
209209

210210
# Add line numbering

0 commit comments

Comments
 (0)