waylan/Python-Markdown — pull request #258 by ryneeverett (2013-10-05 11:18:03+00:00)
Title: markdown="1" | "Default to Span Mode"

Implements a 'default span mode' in those blocks with the `markdown="1"` attribute that should never have block elements within them. Nothing here fixes the deficiencies mentioned in issue #52, but it does fall under the category of 'better support for markdown="1"'.

The regex in `contain_span_tags` comes directly from php-markdown:
```
# Tags where markdown="1" default to span mode:
protected $contain_span_tags_re = 'p|h[1-6]|li|dd|dt|td|th|legend|address';
```

Spanmode tests:
Input (with 'extra' enabled):
```

This is not a code block since Markdown parses paragraph
content as span.

_Hello_ _world_

```

Output Before:
```

This is not a code block since Markdown parses paragraph
content as span.

Hello world

```

Output After:
```

This is not a code block since Markdown parses paragraph
content as span.

Hello world

```