Module Expr Str Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr Num attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Num Return BinOpMod Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareGtE Call AttributeLoad Call NameLoad NameLoad attr Str Num body Return Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num body Return BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str orelse Return Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Str SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad decorator_list TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Str Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad Slice Num SubscriptLoad Call NameLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad Str Str Expr Call NameLoad Call NameLoad Str Str decorator_list
N/A N/A 
Github flavoured markdown - ported from
http://github.github.com/github-flavored-markdown/

Usage:

    html_text = markdown(gfm(markdown_text))

(ie, this filter should be run on the markdown-formatted string BEFORE the markdown
filter itself.)

 N/A re hashlib md5 gfm N/A N/A text N/A N/A N/A extractions N/A pre_extraction_callback N/A N/A matchobj N/A N/A N/A digest N/A N/A N/A md5 N/A N/A matchobj group 0 hexdigest N/A N/A extractions N/A digest N/A N/A matchobj group 0 N/A N/A {gfm-extraction-%s} digest N/A N/A pattern N/A N/A re compile <pre>.*?</pre> N/A N/A re MULTILINE N/A re DOTALL N/A text N/A N/A re sub pattern pre_extraction_callback text italic_callback N/A N/A matchobj N/A N/A N/A s N/A N/A matchobj group 0 N/A N/A N/A N/A N/A list s count _ 2 N/A N/A N/A N/A s replace _ \_ N/A s N/A N/A text N/A N/A re sub ^(?! {4}|\t)\w+_\w+_\w[\w_]* italic_callback text newline_callback N/A N/A matchobj N/A N/A N/A N/A N/A len N/A N/A matchobj group 1 1 N/A N/A N/A N/A N/A N/A N/A matchobj group 0 rstrip N/A N/A N/A N/A matchobj group 0 N/A N/A pattern N/A N/A re compile ^[\w\<][^\n]*(\n+) N/A re MULTILINE N/A text N/A N/A re sub pattern newline_callback text pre_insert_callback N/A N/A matchobj N/A N/A N/A N/A N/A extractions N/A N/A N/A matchobj group 1 N/A N/A text N/A N/A re sub {gfm-extraction-([0-9a-f]{32})\} pre_insert_callback text N/A text N/A N/A N/A nose.tools assert_equal N/A N/A N/A ImportError N/A assert_equal N/A N/A a b N/A N/A N/A N/A a b N/A %r != %r N/A a b N/A test_single_underscores N/A N/A N/A N/A N/A Don't touch single underscores inside words. N/A N/A assert_equal N/A gfm foo_bar foo_bar N/A test_underscores_code_blocks N/A N/A N/A N/A N/A Don't touch underscores in code blocks. N/A N/A assert_equal N/A gfm     foo_bar_baz     foo_bar_baz N/A test_underscores_pre_blocks N/A N/A N/A N/A N/A Don't touch underscores in pre blocks. N/A N/A assert_equal N/A gfm <pre>
foo_bar_baz
</pre> 

<pre>
foo_bar_baz
</pre> N/A test_pre_block_pre_text N/A N/A N/A N/A N/A Don't treat pre blocks with pre-text differently. N/A a 

<pre>
this is `a\_test` and this\_too
</pre> N/A b hmm<pre>
this is `a\_test` and this\_too
</pre> N/A N/A assert_equal N/A N/A gfm a N/A 2 N/A N/A gfm b N/A 3 N/A test_two_underscores N/A N/A N/A N/A N/A Escape two or more underscores inside words. N/A N/A assert_equal N/A gfm foo_bar_baz foo\_bar\_baz N/A test_newlines_simple N/A N/A N/A N/A N/A Turn newlines into br tags in simple cases. N/A N/A assert_equal N/A gfm foo
bar foo  
bar N/A test_newlines_group N/A N/A N/A N/A N/A Convert newlines in all groups. N/A N/A assert_equal N/A gfm apple
pear
orange

ruby
python
erlang apple  
pear  
orange

ruby  
python  
erlang N/A test_newlines_long_group N/A N/A N/A N/A N/A Convert newlines in even long groups. N/A N/A assert_equal N/A gfm apple
pear
orange
banana

ruby
python
erlang apple  
pear  
orange  
banana

ruby  
python  
erlang N/A test_newlines_list N/A N/A N/A N/A N/A Don't convert newlines in lists. N/A N/A assert_equal N/A gfm # foo
# bar # foo
# bar N/A N/A assert_equal N/A gfm * foo
* bar * foo
* bar N/A