jekyllmd.tpl 849 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends 'markdown.tpl' %}
  2. <!-- Add class for input area -->
  3. {% block input %}
  4. {% if cell.source != '' %}
  5. {:.input_area}
  6. ```
  7. {%- if 'magics_language' in cell.metadata -%}
  8. {{ cell.metadata.magics_language}}
  9. {%- elif 'name' in nb.metadata.get('language_info', {}) -%}
  10. {{ nb.metadata.language_info.name }}
  11. {%- endif %}
  12. {{ cell.source }}
  13. ```
  14. {% endif %}
  15. {% endblock input %}
  16. <!-- Remove indentations for output text -->
  17. {% block stream %}
  18. {:.output_stream}
  19. ```
  20. {{ output.text }}
  21. ```
  22. {% endblock stream %}
  23. {% block data_text %}
  24. {:.output_data_text}
  25. ```
  26. {{ output.data['text/plain'] }}
  27. ```
  28. {% endblock data_text %}
  29. {% block traceback_line %}
  30. {:.output_traceback_line}
  31. ```
  32. {{ line | strip_ansi }}
  33. ```
  34. {% endblock traceback_line %}
  35. {% block data_html %}
  36. <div markdown="0">
  37. {{ output.data['text/html'] }}
  38. </div>
  39. {% endblock data_html %}