def run(opt): if opt.list: return generate_style_list() if getattr(opt, 'text'): text = opt.text else: text = sys.stdin.read() return render_block(u(text).split('\n'), style_mapping[opt.style])