Skip to content

Commit

Permalink
fix: avoid closing the script tag early by escaping a forward slash
Browse files Browse the repository at this point in the history
Same as jupyter/nbconvert#1665

Requires a new release of nbconvert as well
  • Loading branch information
maartenbreddels committed Oct 27, 2021
1 parent 708fec6 commit ddb3683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbsphinx.py
Expand Up @@ -284,7 +284,7 @@
.. raw:: html
<script type="application/vnd.jupyter.widget-state+json">
{{ nb.metadata.widgets['application/vnd.jupyter.widget-state+json'] | json_dumps }}
{{ nb.metadata.widgets['application/vnd.jupyter.widget-state+json'] | json_dumps | escape_html_script }}
</script>
{% endif %}
{{ super() }}
Expand Down

0 comments on commit ddb3683

Please sign in to comment.