rst.tpl
80 lines
| 1.6 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
Matthias BUSSONNIER
|
r9642 | {%- extends 'display_priority.tpl' -%} | ||
Matthias BUSSONNIER
|
r9641 | |||
Matthew Brett
|
r12114 | {% block in_prompt %} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock in_prompt %} | ||
damianavila
|
r11770 | {% block output_prompt %} | ||
{% endblock output_prompt %} | ||||
Matthias BUSSONNIER
|
r9641 | |||
damianavila
|
r11770 | {% block input %} | ||
MinRK
|
r18580 | {%- if cell.source.strip() -%} | ||
MinRK
|
r12448 | .. code:: python | ||
MinRK
|
r18580 | {{ cell.source | indent}} | ||
MinRK
|
r12448 | {%- endif -%} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock input %} | ||
Matthias BUSSONNIER
|
r9641 | |||
MinRK
|
r18580 | {% block error %} | ||
damianavila
|
r11770 | :: | ||
MinRK
|
r12448 | |||
Matthias BUSSONNIER
|
r9643 | {{ super() }} | ||
MinRK
|
r18580 | {% endblock error %} | ||
Matthias BUSSONNIER
|
r9641 | |||
{% block traceback_line %} | ||||
damianavila
|
r11770 | {{ line | indent | strip_ansi }} | ||
{% endblock traceback_line %} | ||||
Matthias BUSSONNIER
|
r9641 | |||
MinRK
|
r18580 | {% block execute_result %} | ||
damianavila
|
r11770 | {% block data_priority scoped %} | ||
{{ super() }} | ||||
{% endblock %} | ||||
MinRK
|
r18580 | {% endblock execute_result %} | ||
Matthias BUSSONNIER
|
r9641 | |||
{% block stream %} | ||||
.. parsed-literal:: | ||||
damianavila
|
r11770 | {{ output.text | indent }} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock stream %} | ||
damianavila
|
r11770 | {% block data_svg %} | ||
MinRK
|
r18589 | .. image:: {{ output.metadata.filenames['image/svg+xml'] | urlencode }} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock data_svg %} | ||
Matthias BUSSONNIER
|
r9641 | |||
damianavila
|
r11770 | {% block data_png %} | ||
MinRK
|
r18589 | .. image:: {{ output.metadata.filenames['image/png'] | urlencode }} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock data_png %} | ||
damianavila
|
r11770 | {% block data_jpg %} | ||
MinRK
|
r18589 | .. image:: {{ output.metadata.filenames['image/jpeg'] | urlencode }} | ||
Matthias BUSSONNIER
|
r9643 | {% endblock data_jpg %} | ||
damianavila
|
r11770 | {% block data_latex %} | ||
.. math:: | ||||
MinRK
|
r12448 | |||
MinRK
|
r18589 | {{ output.data['text/latex'] | strip_dollars | indent }} | ||
Matthias BUSSONNIER
|
r9643 | {% endblock data_latex %} | ||
damianavila
|
r11770 | {% block data_text scoped %} | ||
.. parsed-literal:: | ||||
MinRK
|
r12448 | |||
MinRK
|
r18589 | {{ output.data['text/plain'] | indent }} | ||
Matthias BUSSONNIER
|
r9642 | {% endblock data_text %} | ||
MinRK
|
r12448 | {% block data_html scoped %} | ||
.. raw:: html | ||||
MinRK
|
r18589 | {{ output.data['text/html'] | indent }} | ||
MinRK
|
r12448 | {% endblock data_html %} | ||
damianavila
|
r11770 | {% block markdowncell scoped %} | ||
{{ cell.source | markdown2rst }} | ||||
Matthias BUSSONNIER
|
r9641 | {% endblock markdowncell %} | ||
{% block headingcell scoped %} | ||||
MinRK
|
r11317 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} | ||
Matthias BUSSONNIER
|
r9641 | {% endblock headingcell %} | ||
{% block unknowncell scoped %} | ||||
unknown type {{cell.type}} | ||||
Matthew Brett
|
r12114 | {% endblock unknowncell %} | ||