1+ from __future__ import absolute_import
2+
13from converters .base import Converter
24from converters .utils import text_cell , output_container
5+ from converters .utils import highlight , coalesce_streams , ansi2html
6+
7+ from IPython .utils import path
8+ from markdown import markdown
9+ import os
10+ import io
311
412class ConverterHTML (Converter ):
513 extension = 'html'
@@ -47,7 +55,7 @@ def header_body(self):
4755 os .path .join (css , 'notebook.css' ),
4856 os .path .join (css , 'renderedhtml.css' ),
4957 # our overrides:
50- os .path .join (here , 'css' , 'static_html.css' ),
58+ os .path .join (here , '..' , ' css' , 'static_html.css' ),
5159 ]:
5260 header .extend (self ._stylesheet (sheet ))
5361
@@ -60,7 +68,7 @@ def header_body(self):
6068 header .extend (self .in_tag ('script' , '' , {'type' :'"text/javascript"' ,
6169 'src' : '"https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"' ,
6270 }))
63- with io .open (os .path .join (here , 'js' , 'initmathjax.js' ),
71+ with io .open (os .path .join (here , '..' , ' js' , 'initmathjax.js' ),
6472 encoding = 'utf-8' ) as f :
6573 header .extend (self .in_tag ('script' , f .read (),
6674 {'type' : '"text/javascript"' }))
0 commit comments