Skip to content

Commit b743009

Browse files
MacHu-GWUmgeier
authored andcommitted
support text/x-rst raw_mimitype
1 parent 2407722 commit b743009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbsphinx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
{{ (cell.source or '% empty raw cell') | indent }}
293293
{%- elif raw_mimetype == 'text/markdown' %}
294294
{{ cell.source | markdown2rst }}
295-
{%- elif raw_mimetype == 'text/restructuredtext' %}
295+
{%- elif raw_mimetype in ['text/restructuredtext', 'text/x-rst'] %}
296296
{{ cell.source }}
297297
{% endif %}
298298
{% endblock rawcell %}

0 commit comments

Comments
 (0)