code: def compile_markdown_file(source_file):
    '''Compiles a single markdown file to a remark.js slideshow.'''
    template = pkg_resources.resource_string('md2remark.resources.templates', 'slideshow.mustache')
  
    renderer = pystache.Renderer(search_dirs='./templates')
  
    f = open(source_file, 'r')
    slideshow_md = f.read()
    f.close()
    slideshow_name = os.path.split(source_file)[1].split('.')[0]
  
    rendered_text = renderer.render(template, {'title': slideshow_name, 'slideshow': slideshow_md})  
  
    if not os.path.exists('md2remark_build'):
      os.makedirs('md2remark_build')
    
    f = open(os.path.join('md2remark_build', slideshow_name + '.html'), 'w')
    f.write(rendered_text)
    f.close(f compile_markdown_file(source_file):
    '''Compiles a single markdown file to a remark.js slideshow.'''
    template = pkg_resources.resource_string('md2remark.resources.templates', 'slideshow.mustache')
  
    renderer = pystache.Renderer(search_dirs='./templates')
  
    f = open(source_file, 'r')
    slideshow_md = f.read()
    f.close()
    slideshow_name = os.path.split(source_file)[1].split('.')[0]
  
    rendered_text = renderer.render(template, {'title': slideshow_name, 'slideshow': slideshow_md})  
  
    if not os.path.exists('md2remark_build'):
      os.makedirs('md2remark_build')
    
    f = open(os.path.join('md2remark_build', slideshow_name + '.html'), 'w')
    f.write(rendered_text)
    f.close()
docs: Compiles a single markdown file to a remark.js slideshow.