(md_file, outf, prefix='', baselevel=1)
Convert markdown to html.
Convert markdown to html.
Convert markdown to html .
def _md_to_html(md_file, outf, prefix='', baselevel=1):
    """Convert markdown to html."""
    mdown = read_file(md_file)
    toc = TocExtension(
        baselevel=baselevel,
        slugify=(
            lambda value, separator:
            prefix + slugify(value, separator)
        )
    )
    outf.write(markdown.markdown(
        mdown, extensions=['markdown.extensions.tables', toc],
        output_format='html5', lazy_ol=False
    ))
def _md_to_html ( md_file , outf , prefix = '' , baselevel = 1 ) : mdown = read_file ( md_file ) toc = TocExtension ( baselevel = baselevel , slugify = ( lambda value , separator : prefix + slugify ( value , separator ) ) ) outf . write ( markdown . markdown ( mdown , extensions = [ 'markdown.extensions.tables' , toc ] , output_format = 'html5' , lazy_ol = False ) )