Skip to content

Commit 2af3b85

Browse files
authored
Merge pull request #155 from akhmerov/issue-134
Fix handling of math in outputs
2 parents 1f0b821 + c00b26f commit 2af3b85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_sphinx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def setup(app):
272272
app.add_role("jupyter-download:nb", JupyterDownloadRole())
273273
app.add_role("jupyter-download:script", JupyterDownloadRole())
274274
app.add_transform(ExecuteJupyterCells)
275-
app.add_post_transform(CellOutputsToNodes)
275+
app.add_transform(CellOutputsToNodes)
276276

277277
# For syntax highlighting
278278
app.add_lexer("ipythontb", IPythonTracebackLexer)

tests/test_execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def doctree(
4646
if config is not None:
4747
conf_contents += "\n" + config
4848
(src_dir / "conf.py").write_text(conf_contents, encoding = "utf8")
49-
(src_dir / "contents.rst").write_text(source, encoding = "utf8")
49+
(src_dir / "index.rst").write_text(source, encoding = "utf8")
5050

5151
warnings = StringIO()
5252
app = SphinxTestApp(
@@ -58,7 +58,7 @@ def doctree(
5858
apps.append(app)
5959
app.build()
6060

61-
doctree = app.env.get_and_resolve_doctree("contents", app.builder)
61+
doctree = app.env.get_and_resolve_doctree("index", app.builder)
6262

6363
if return_warnings:
6464
return doctree, warnings.getvalue()

0 commit comments

Comments
 (0)