def make_sample():
    """ Generate the theme roller sample markdown """
    if md_sample:
        # user has set another:
        return md_sample
    _md = []
    for hl in range(1, 7): _md.append('#' * hl + ' ' + 'Header %s' % hl)
    this = open(__file__).read().split('"""', 3)[2].splitlines()[:10]
    _md.append('```python\n""" Test """\n%s\n```' % '\n'.join(this).strip())
    _md.append("""
| Tables        | Fmt |
| -- | -- |
| !!! hint: wrapped | 0.1 **strong** |
    """)
    for ad in admons.keys()[:1]:
        _md.append('!!! %s: title\n    this is a %s\n' % (ad, ad.capitalize()))
    # 'this theme' replaced in the roller (but not at mdv w/o args):
    globals()['md_sample'] = \
            '\n'.join(_md) + '\n----\n!!! question: %s' % you_like
def make_sample ( ) : if md_sample : return md_sample _md = [ ] for hl in range ( 1 , 7 ) : _md . append ( '#' * hl + ' ' + 'Header %s' % hl ) this = open ( __file__ ) . read ( ) . split ( '"""' , 3 ) [ 2 ] . splitlines ( ) [ : 10 ] _md . append ( '```python\n""" Test """\n%s\n```' % '\n' . join ( this ) . strip ( ) ) _md . append ( """
| Tables        | Fmt |
| -- | -- |
| !!! hint: wrapped | 0.1 **strong** |
    """ ) for ad in admons . keys ( ) [ : 1 ] : _md . append ( '!!! %s: title\n    this is a %s\n' % ( ad , ad . capitalize ( ) ) ) globals ( ) [ 'md_sample' ] = '\n' . join ( _md ) + '\n----\n!!! question: %s' % you_like
Generate the theme roller sample markdown