<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-markdown.git/tests/extensions, branch 3.3.2</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>Refactor HTML Parser (#803)</title>
<updated>2020-09-22T14:42:17+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-09-22T14:42:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=b701c34ebd7b2d0eb319517b9a275ddf0c89608d'/>
<id>b701c34ebd7b2d0eb319517b9a275ddf0c89608d</id>
<content type='text'>
The HTML parser has been completely replaced. The new HTML parser is built on Python's html.parser.HTMLParser, which alleviates various bugs and simplifies maintenance of the code.

The md_in_html extension has been rebuilt on the new HTML Parser, which drastically simplifies it. Note that raw HTML elements with a markdown attribute defined are now converted to ElementTree Elements and are rendered by the serializer. Various bugs have been fixed.

Link reference parsing, abbreviation reference parsing and footnote reference parsing has all been moved from preprocessors to blockprocessors, which allows them to be nested within other block level elements. Specifically, this change was necessary to maintain the current behavior in the rebuilt md_in_html extension. A few random edge-case bugs (see the included tests) were resolved in the process.

Closes #595, closes #780, closes #830 and closes #1012.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The HTML parser has been completely replaced. The new HTML parser is built on Python's html.parser.HTMLParser, which alleviates various bugs and simplifies maintenance of the code.

The md_in_html extension has been rebuilt on the new HTML Parser, which drastically simplifies it. Note that raw HTML elements with a markdown attribute defined are now converted to ElementTree Elements and are rendered by the serializer. Various bugs have been fixed.

Link reference parsing, abbreviation reference parsing and footnote reference parsing has all been moved from preprocessors to blockprocessors, which allows them to be nested within other block level elements. Specifically, this change was necessary to maintain the current behavior in the rebuilt md_in_html extension. A few random edge-case bugs (see the included tests) were resolved in the process.

Closes #595, closes #780, closes #830 and closes #1012.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tune attr list regex</title>
<updated>2020-06-30T18:36:01+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-06-25T19:34:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=706d1fd096a49df0662a181f9dae726edefff43f'/>
<id>706d1fd096a49df0662a181f9dae726edefff43f</id>
<content type='text'>
Ignore empty braces. Braces must contain at least one non-whitepsace
character to be recognized as an attr list.

Attr lists for table cells must be at the end of the cell content and must
be seperated from the content by at least one space. This appears to be
a breaking change. However, it is consistent with the behavior elsewhere.

Fixes #898.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ignore empty braces. Braces must contain at least one non-whitepsace
character to be recognized as an attr list.

Attr lists for table cells must be at the end of the cell content and must
be seperated from the content by at least one space. This appears to be
a breaking change. However, it is consistent with the behavior elsewhere.

Fixes #898.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor fenced_code &amp; codehilite options (#816)</title>
<updated>2020-06-23T20:04:31+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-06-23T20:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=10058fae6577e79b786f4e185218aebb1b53e937'/>
<id>10058fae6577e79b786f4e185218aebb1b53e937</id>
<content type='text'>
* Add `language-` prefix to output when syntax highlighting is
  disabled for both codehilite and fenced_code extensions.
* Add `lang_prefix` config option to customize the prefix.
* Add a 'pygments' env to tox which runs the tests with Pygments
  installed. Pygments is locked to a specific version in the env.
* Updated codehilite to accept any Pygments options.
* Refactor fenced code attributes.
   - ID attr is defined on `pre` tag.
    - Add support for attr_list extension, which allows setting arbitrary 
      attributes. 
    - When syntax highlighting is enabled, any pygments options can
       be defined per block in the attr list.
    - For backward compatibility, continue to support `hi_lines` outside
      of an attr_list. That is the only attr other than lang which is allowed
      without the brackets (`{}`) of an attr list. Note that if the brackets
      exist, then everything, including lang and hl_lines, must be within
      them.
* Resolves #775. Resolves #334. Addresses #652.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add `language-` prefix to output when syntax highlighting is
  disabled for both codehilite and fenced_code extensions.
* Add `lang_prefix` config option to customize the prefix.
* Add a 'pygments' env to tox which runs the tests with Pygments
  installed. Pygments is locked to a specific version in the env.
* Updated codehilite to accept any Pygments options.
* Refactor fenced code attributes.
   - ID attr is defined on `pre` tag.
    - Add support for attr_list extension, which allows setting arbitrary 
      attributes. 
    - When syntax highlighting is enabled, any pygments options can
       be defined per block in the attr list.
    - For backward compatibility, continue to support `hi_lines` outside
      of an attr_list. That is the only attr other than lang which is allowed
      without the brackets (`{}`) of an attr list. Note that if the brackets
      exist, then everything, including lang and hl_lines, must be within
      them.
* Resolves #775. Resolves #334. Addresses #652.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo, in the ten cut and pasted versions</title>
<updated>2020-04-19T18:30:56+00:00</updated>
<author>
<name>Charles Merriam</name>
<email>charles.merriam@gmail.com</email>
</author>
<published>2020-04-19T11:26:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=bbfdd5548d7930a281dc4f70a2ed6d80ed266bf9'/>
<id>bbfdd5548d7930a281dc4f70a2ed6d80ed266bf9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>foot note adjustments (#728)</title>
<updated>2018-10-09T15:00:25+00:00</updated>
<author>
<name>Isaac Muse</name>
<email>faceless.shop@gmail.com</email>
</author>
<published>2018-10-09T15:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=908bd07618cec8b63a64f74e50dadb450715832b'/>
<id>908bd07618cec8b63a64f74e50dadb450715832b</id>
<content type='text'>
Add a config to set the footnote separator. Also remove rel/rev as they aren't really compatible with HTML5 and we already have classes set for refs and backrefs.

Fixes 723.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a config to set the footnote separator. Also remove rel/rev as they aren't really compatible with HTML5 and we already have classes set for refs and backrefs.

Fixes 723.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove lazy_ol keyword. Use sane_lists extension instead.</title>
<updated>2018-07-31T14:20:53+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2015-04-07T23:50:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=15acbdec8c9357b78435af707140b0278cf376b2'/>
<id>15acbdec8c9357b78435af707140b0278cf376b2</id>
<content type='text'>
This was adapted from 11408e50 of the md3 branch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was adapted from 11408e50 of the md3 branch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the possibility to set additional classes</title>
<updated>2018-07-24T18:42:42+00:00</updated>
<author>
<name>WhiteWinterWolf</name>
<email>github@whitewinterwolf.com</email>
</author>
<published>2017-09-08T11:45:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=67bb12b3e508b389f18efb6a992cc390680a7235'/>
<id>67bb12b3e508b389f18efb6a992cc390680a7235</id>
<content type='text'>
Additional CSS classes names can be appended to the admonition name
using spaces as separators.

The following markdown:

    !!! note floatright
        This is a floating note.

Generates the following HTML code:

    &lt;div class="admonition note floatright"&gt;
        &lt;p class="admonition-title"&gt;Note&lt;/p&gt;
        &lt;p&gt;This is a floating note.&lt;/p&gt;
    &lt;/div&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Additional CSS classes names can be appended to the admonition name
using spaces as separators.

The following markdown:

    !!! note floatright
        This is a floating note.

Generates the following HTML code:

    &lt;div class="admonition note floatright"&gt;
        &lt;p class="admonition-title"&gt;Note&lt;/p&gt;
        &lt;p&gt;This is a floating note.&lt;/p&gt;
    &lt;/div&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct spelling mistakes.</title>
<updated>2018-01-13T16:42:50+00:00</updated>
<author>
<name>Edward Betts</name>
<email>edward@4angle.com</email>
</author>
<published>2018-01-13T09:25:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=3fad73031e544de6c9f74621de923da3806a6c21'/>
<id>3fad73031e544de6c9f74621de923da3806a6c21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch from nose to unittest</title>
<updated>2018-01-09T01:41:18+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2018-01-06T06:04:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=49249b3fb6c458c2cbc34c409ba57cfae6e72320'/>
<id>49249b3fb6c458c2cbc34c409ba57cfae6e72320</id>
<content type='text'>
All file-based tests are now defined as unittest test cases via a
metaclass which walks a directory and builds a unittest for each pair
of test files.

To run the tests just run `python -m unittest discover tests`. Or use
tox as the tox config has been updated to run the new tests and all nose
specific code has been removed.

The test generator tools have been removed as well. If any changes or
additions need to be made to tests, they should be implemented using
the new framework rather than with the file-based tests. Eventually,
only the PHP and pl tests should remain as file-based tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All file-based tests are now defined as unittest test cases via a
metaclass which walks a directory and builds a unittest for each pair
of test files.

To run the tests just run `python -m unittest discover tests`. Or use
tox as the tox config has been updated to run the new tests and all nose
specific code has been removed.

The test generator tools have been removed as well. If any changes or
additions need to be made to tests, they should be implemented using
the new framework rather than with the file-based tests. Eventually,
only the PHP and pl tests should remain as file-based tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix raw html reference issue (#585)</title>
<updated>2018-01-04T20:07:45+00:00</updated>
<author>
<name>Isaac Muse</name>
<email>faceless.shop@gmail.com</email>
</author>
<published>2018-01-04T20:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=1de595a4a9c5536d32d597dba799cd036582af0f'/>
<id>1de595a4a9c5536d32d597dba799cd036582af0f</id>
<content type='text'>
Preserve the line which a reference was on to prevent raw HTML indexing issue. Fixes #584.

Prevent raw HTML parsing issue in abbr and footnotes

Peserve abbreviation line when stripping and preserve a line for each footnote block.  Footnotes should also accumulate the extraneous padding.

Test extra lines at the end of references

Strip the gathered extraneous whitespace

When processing footnotes, we don't actually care to process the extra whitespace at the end of a footnote, but we want it to calculate lines to preserve.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Preserve the line which a reference was on to prevent raw HTML indexing issue. Fixes #584.

Prevent raw HTML parsing issue in abbr and footnotes

Peserve abbreviation line when stripping and preserve a line for each footnote block.  Footnotes should also accumulate the extraneous padding.

Test extra lines at the end of references

Strip the gathered extraneous whitespace

When processing footnotes, we don't actually care to process the extra whitespace at the end of a footnote, but we want it to calculate lines to preserve.
</pre>
</div>
</content>
</entry>
</feed>
