Skip to content

Commit

Permalink
Add Jupyter shortcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbandlow committed Jul 9, 2018
1 parent 26da766 commit c297064
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include nb_hugo_exporter/hugo_markdown.tpl
include README.md LICENSE
2 changes: 0 additions & 2 deletions nbhugoexporter/hugopreprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ def _extract_latex(self, markdown):
including delimiters.
"""
# TODO: The other possible latex delimiters.

# '$$ but not \$$' 'anything not ending in \' '$$'.
display_math = re.compile(r'[^\\](\$\$.*?[^\\]\$\$)', re.DOTALL)
out = re.findall(display_math, markdown)
Expand Down
1 change: 1 addition & 0 deletions resources/jupyter_cell_end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
</div>
1 change: 1 addition & 0 deletions resources/jupyter_cell_start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="jupyter-cell" {{ .Get 0 }}">
1 change: 1 addition & 0 deletions resources/jupyter_input_end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
</div>
1 change: 1 addition & 0 deletions resources/jupyter_input_start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="jupyter-input">

0 comments on commit c297064

Please sign in to comment.