Show More
@@ -63,21 +63,7 b' Out[{{cell.prompt_number}}]:{% endif %}{% endblock output_prompt %}' | |||||
63 | {% endblock markdowncell %} |
|
63 | {% endblock markdowncell %} | |
64 |
|
64 | |||
65 | {% block headingcell scoped %} |
|
65 | {% block headingcell scoped %} | |
66 | {{ cell.source | replace('\n', ' ') | markdown2rst }} |
|
66 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} | |
67 | {%- set len = cell.source | replace('\n', ' ') | markdown2rst | length -%} |
|
|||
68 | {% if cell.level == 1 %} |
|
|||
69 | {{- '=' * len }} |
|
|||
70 | {%- elif cell.level == 2 %} |
|
|||
71 | {{- '-' * len }} |
|
|||
72 | {%- elif cell.level == 3 %} |
|
|||
73 | {{- '~' * len }} |
|
|||
74 | {%- elif cell.level == 4 %} |
|
|||
75 | {{- '.' * len }} |
|
|||
76 | {%- elif cell.level == 5 %} |
|
|||
77 | {{- '\\' * len }} |
|
|||
78 | {%- elif cell.level == 6 %} |
|
|||
79 | {{- '`' * len }} |
|
|||
80 | {% endif %} |
|
|||
81 |
|
67 | |||
82 | {% endblock headingcell %} |
|
68 | {% endblock headingcell %} | |
83 |
|
69 |
General Comments 0
You need to be logged in to leave comments.
Login now