<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-markdown.git/tests, branch 2.5.1-final</title>
<subtitle>github.com: waylan/Python-Markdown.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/'/>
<entry>
<title>Better nested STRONG EM support.</title>
<updated>2014-09-26T14:29:48+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2014-09-25T20:07:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=8358bb3c569026d9775859bcdbd2611fc9499420'/>
<id>8358bb3c569026d9775859bcdbd2611fc9499420</id>
<content type='text'>
Fixes #253. Thanks to @facelessuser for the tests. Although I removed
a bunch of weird ones (even some that passed) from his PR (#342). For
the most part, there is no definitive way for those to be parsed. So
there is no point of testing for them. In most of those situations,
authors should be mixing underscores and astericks so it is clear
what is intended.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #253. Thanks to @facelessuser for the tests. Although I removed
a bunch of weird ones (even some that passed) from his PR (#342). For
the most part, there is no definitive way for those to be parsed. So
there is no point of testing for them. In most of those situations,
authors should be mixing underscores and astericks so it is clear
what is intended.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the lost tail issue in inlineprocessors.</title>
<updated>2014-09-26T14:27:48+00:00</updated>
<author>
<name>facelessuser</name>
<email>faceless.shop@gmail.com</email>
</author>
<published>2014-09-19T23:44:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=9082ed45deef99a0ff3c20aaa9f2c9b63e576838'/>
<id>9082ed45deef99a0ff3c20aaa9f2c9b63e576838</id>
<content type='text'>
See #253. Prior to this patch, if any inline processors returned an element
with a tail, the tail would end up empty. This resolves that issue and will
allow for #253 to be fixed. Thanks to @facelessuser for the work on this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See #253. Prior to this patch, if any inline processors returned an element
with a tail, the tail would end up empty. This resolves that issue and will
allow for #253 to be fixed. Thanks to @facelessuser for the work on this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added a temp workwround for deprecated short ext names.</title>
<updated>2014-09-26T02:26:07+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2014-09-26T02:26:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=8f878c37dc3613b7279a0787bdcaf2d66b348d74'/>
<id>8f878c37dc3613b7279a0787bdcaf2d66b348d74</id>
<content type='text'>
As we chnaged the order in import trys for short names extensions
(no dot syntax), an extra test was added to the import code for the
occassion when a naming conflict exists. For example, if PyTables
is installed (module name is tables) and the user tries to use
the short name 'tables' instead of 'markdown.extensions.tables'.
Fixes #341.

Of course, this code will get ripped out when the old behavior is
fully deprecated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As we chnaged the order in import trys for short names extensions
(no dot syntax), an extra test was added to the import code for the
occassion when a naming conflict exists. For example, if PyTables
is installed (module name is tables) and the user tries to use
the short name 'tables' instead of 'markdown.extensions.tables'.
Fixes #341.

Of course, this code will get ripped out when the old behavior is
fully deprecated.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed TOC Option parsing.</title>
<updated>2014-09-26T01:17:57+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2014-09-26T01:17:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=39c8c1c64fe04bbde625b314386cb109b11527da'/>
<id>39c8c1c64fe04bbde625b314386cb109b11527da</id>
<content type='text'>
The new option parser assumes bool values if the default is bool or
None. As the "title" option is not a bool value, it should default to an
empty string rather than None. Fixes #347.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new option parser assumes bool values if the default is bool or
None. As the "title" option is not a bool value, it should default to an
empty string rather than None. Fixes #347.
</pre>
</div>
</content>
</entry>
<entry>
<title>Code Blocks must always be AtomicStrings</title>
<updated>2014-09-09T02:37:45+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2014-09-09T02:37:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=b91a37be0ab019fa1ee0b94014a6ed0c7ff5dbf5'/>
<id>b91a37be0ab019fa1ee0b94014a6ed0c7ff5dbf5</id>
<content type='text'>
Fixes #340. The "inline" TreeProcessor runs before the "prettify"
TreeProcessor, but the "smarty" TreeProcessor (wich is just another
instance of `InlineProcessor`) runs after the "prettify" TreeProcessor.
The problem was that the "prettify" TreeProcessor was losing the
AtomicString quality of the text of code blocks (any operation
on a string creates a new string. When that string is an AtomicString,
the new string must explicitly be declared as an AtomicString.
As the "prettify" TreeProcessor cleans up newlines on code blocks,
it was changing the AtomicString to a normal string. And as
`InlineProcessor` identifies what elements to skip solely by whether
the text is an AtomicString, the "smarty" instance was running on
code blocks.

Importantly, I added a test of code blocks and spans for smarty,
so this shouldn't break again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #340. The "inline" TreeProcessor runs before the "prettify"
TreeProcessor, but the "smarty" TreeProcessor (wich is just another
instance of `InlineProcessor`) runs after the "prettify" TreeProcessor.
The problem was that the "prettify" TreeProcessor was losing the
AtomicString quality of the text of code blocks (any operation
on a string creates a new string. When that string is an AtomicString,
the new string must explicitly be declared as an AtomicString.
As the "prettify" TreeProcessor cleans up newlines on code blocks,
it was changing the AtomicString to a normal string. And as
`InlineProcessor` identifies what elements to skip solely by whether
the text is an AtomicString, the "smarty" instance was running on
code blocks.

Importantly, I added a test of code blocks and spans for smarty,
so this shouldn't break again.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark special treatment of extension names as PendingDeprecation</title>
<updated>2014-08-30T00:00:39+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan@gmail.com</email>
</author>
<published>2014-08-30T00:00:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=9a5b11116e2ea8a240fa2d03cad9de334023da9d'/>
<id>9a5b11116e2ea8a240fa2d03cad9de334023da9d</id>
<content type='text'>
The builtin extensions will no longer get special treatment and have
the path ("markdown.extensions.") appended . The same applies for
"mdx_" extensions. All names extension must provide the full path.
Fixes #336.

Also deprecating support for passing in extension config settings
as part of the string name. The extension_configs keyword should
be used instead. Fixes #335.

Also raising PendingDeprecationWarnings for positional args or the
"config" keyword on the Extension Class. Pass each setting as a
seperate keyword instead.

Docs and tests are updated. Still need to update extension API docs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The builtin extensions will no longer get special treatment and have
the path ("markdown.extensions.") appended . The same applies for
"mdx_" extensions. All names extension must provide the full path.
Fixes #336.

Also deprecating support for passing in extension config settings
as part of the string name. The extension_configs keyword should
be used instead. Fixes #335.

Also raising PendingDeprecationWarnings for positional args or the
"config" keyword on the Extension Class. Pass each setting as a
seperate keyword instead.

Docs and tests are updated. Still need to update extension API docs.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactored tests to no longer pass configs to names extensions.</title>
<updated>2014-08-29T19:44:41+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2014-08-29T19:44:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=8aa89a389ae1a7cdafa516be84532b26ed3c565d'/>
<id>8aa89a389ae1a7cdafa516be84532b26ed3c565d</id>
<content type='text'>
`'path.to.module(option=value'` =&gt; `path.to.module.Class(option='value')`
This is in anticipation of #335
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`'path.to.module(option=value'` =&gt; `path.to.module.Class(option='value')`
This is in anticipation of #335
</pre>
</div>
</content>
</entry>
<entry>
<title>More updates to test configs.</title>
<updated>2014-08-29T18:11:57+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2014-08-29T18:11:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=9d388a8ee26934c7b4685374ed7afbf5219d1995'/>
<id>9d388a8ee26934c7b4685374ed7afbf5219d1995</id>
<content type='text'>
The last few extensions were updated to accept dicts/**kwargs as configs and more
tests were updated. Also updated extra to actually accept configs.

Note that extra requires an extra level of dicts. First you need
to indicate tha the settings are for extra, then, which extension
extra wraps. I'm not crazy abount this, bit not sur ehow else to do it
without making all the configs a global attribute on the Markdown class
to that any extention can access any other extensions config settings.
I don't think we wnat to do that.

Also updated extra to use dot notation for the sub-extensions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The last few extensions were updated to accept dicts/**kwargs as configs and more
tests were updated. Also updated extra to actually accept configs.

Note that extra requires an extra level of dicts. First you need
to indicate tha the settings are for extra, then, which extension
extra wraps. I'm not crazy abount this, bit not sur ehow else to do it
without making all the configs a global attribute on the Markdown class
to that any extention can access any other extensions config settings.
I don't think we wnat to do that.

Also updated extra to use dot notation for the sub-extensions.
</pre>
</div>
</content>
</entry>
<entry>
<title>All extension tests now use python dot notation.</title>
<updated>2014-08-29T14:25:29+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2014-08-29T14:25:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=b1643eb058f44a05523b118632c7b8181b2ffbe7'/>
<id>b1643eb058f44a05523b118632c7b8181b2ffbe7</id>
<content type='text'>
All named extensions now use python dot notation in the tests - including
all builtin extensions (eg: 'extra' =&gt; 'markdown.extensions.extra'). This
is in anticipation of #336.

Note there are a few tests (in the error tests) that will still need
updating, but not till we make the change as they will test for the
new error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All named extensions now use python dot notation in the tests - including
all builtin extensions (eg: 'extra' =&gt; 'markdown.extensions.extra'). This
is in anticipation of #336.

Note there are a few tests (in the error tests) that will still need
updating, but not till we make the change as they will test for the
new error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow named extensions to specify the Class Name</title>
<updated>2014-08-27T18:59:40+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2014-08-27T18:59:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=e98ac74737c1f28ec730fa5c645062e0e0d5702b'/>
<id>e98ac74737c1f28ec730fa5c645062e0e0d5702b</id>
<content type='text'>
If you were to import the class like this:

    from path.to.module import SomeExtensionClass

Then the named extension would be the string:

    "path.to.module:SomeExtensionClass"

This should simplify loading extensions from the command line or
template filters -- expecially when multiple extensions are defined
in a single python module.

The docs still need updating. I'm waiting to update the docs after
implementing #335 and #336 as that will require a major refactor of
that section of the docs anyway.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If you were to import the class like this:

    from path.to.module import SomeExtensionClass

Then the named extension would be the string:

    "path.to.module:SomeExtensionClass"

This should simplify loading extensions from the command line or
template filters -- expecially when multiple extensions are defined
in a single python module.

The docs still need updating. I'm waiting to update the docs after
implementing #335 and #336 as that will require a major refactor of
that section of the docs anyway.
</pre>
</div>
</content>
</entry>
</feed>
