<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-markdown.git/tests, 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>Properly parse inline HTML in md_in_html</title>
<updated>2020-10-19T18:07:45+00:00</updated>
<author>
<name>Isaac Muse</name>
<email>faceless.shop@gmail.com</email>
</author>
<published>2020-10-19T18:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=2766698ac88ae9218d41b3ca1d9fbd4b4bd105e5'/>
<id>2766698ac88ae9218d41b3ca1d9fbd4b4bd105e5</id>
<content type='text'>
Fixes #1040 and fixes #1045.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #1040 and fixes #1045.</pre>
</div>
</content>
</entry>
<entry>
<title>Account for Etree Elements in HTML Stash</title>
<updated>2020-10-14T19:21:44+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-10-14T17:48:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=607a091918004c4ca10fb621e53a09a00b8d299b'/>
<id>607a091918004c4ca10fb621e53a09a00b8d299b</id>
<content type='text'>
By calling str on all stash elements we ensure they don't raise an error.
Worse case, soemthing like `&lt;Element 'div' at 0x000001B2DAE94900&gt;` gets
inserted into the output. However, with the override in the md_in_html
extension, we actually serialize and reinsert the original HTML. Worse case,
an HTML block which should be parsed as Markdown gets skipped by the
extension (`&lt;div markdown="block"&gt;&lt;/div&gt;` gets inserting into the output).

The tricky part is testing as there should be no known cases where this
ever occurs. Therefore, we forefully pass an etree Element directly to
the method in the test. That said, as #1040 is unresolved at this point,
I have tested locally with a real existing case and it works well.

Related to #1040.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By calling str on all stash elements we ensure they don't raise an error.
Worse case, soemthing like `&lt;Element 'div' at 0x000001B2DAE94900&gt;` gets
inserted into the output. However, with the override in the md_in_html
extension, we actually serialize and reinsert the original HTML. Worse case,
an HTML block which should be parsed as Markdown gets skipped by the
extension (`&lt;div markdown="block"&gt;&lt;/div&gt;` gets inserting into the output).

The tricky part is testing as there should be no known cases where this
ever occurs. Therefore, we forefully pass an etree Element directly to
the method in the test. That said, as #1040 is unresolved at this point,
I have tested locally with a real existing case and it works well.

Related to #1040.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correctly parse raw `script` and `style` tags. (#1038)</title>
<updated>2020-10-12T18:17:03+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-10-12T18:17:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=5fdf7d47aa90a0983fa356b577a2ff5e16e68147'/>
<id>5fdf7d47aa90a0983fa356b577a2ff5e16e68147</id>
<content type='text'>
* Ensure unclosed script tags are parsed correctly by providing a workaround for https://bugs.python.org/issue41989.
* Avoid cdata_mode outside of HTML blocks, such as in inline code spans.

Fixes #1036.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Ensure unclosed script tags are parsed correctly by providing a workaround for https://bugs.python.org/issue41989.
* Avoid cdata_mode outside of HTML blocks, such as in inline code spans.

Fixes #1036.
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip tests with pygments version mismatch.</title>
<updated>2020-10-08T20:08:13+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-10-08T19:33:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=e02ed390666930ce8640d4cebcac51059e9a34d8'/>
<id>e02ed390666930ce8640d4cebcac51059e9a34d8</id>
<content type='text'>
If pygments is installed and the version doesn't match the expected version.
then any relevant tests will fail. To avoid failing tests due to different
output by pygments, those tests will be skipped. The pygments tox env
sets the `PYGMENTS_VERSION environment variable, so that env will always
run those tests against the expected version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If pygments is installed and the version doesn't match the expected version.
then any relevant tests will fail. To avoid failing tests due to different
output by pygments, those tests will be skipped. The pygments tox env
sets the `PYGMENTS_VERSION environment variable, so that env will always
run those tests against the expected version.
</pre>
</div>
</content>
</entry>
<entry>
<title>Some test tweaks.</title>
<updated>2020-10-08T18:38:16+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-10-08T18:21:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=6525e21c7f4fc7533e7135bd880d9ddeaf6bd817'/>
<id>6525e21c7f4fc7533e7135bd880d9ddeaf6bd817</id>
<content type='text'>
* Pygments specific tests now only run when the pygments version installed
  matches the expected version. That version is defined in an environment
  variable (PYGMENTS_VERSION) in the 'pygments' tox env (see #1030).
* When the Python lib tidylib is installed but the underlying c lib is not,
  the relevant tests are now skipped rather than fail. This matches the
  behavior when the Python lib is not installed. The tox envs are now useful
  on systems which don't have the c lib installed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Pygments specific tests now only run when the pygments version installed
  matches the expected version. That version is defined in an environment
  variable (PYGMENTS_VERSION) in the 'pygments' tox env (see #1030).
* When the Python lib tidylib is installed but the underlying c lib is not,
  the relevant tests are now skipped rather than fail. This matches the
  behavior when the Python lib is not installed. The tox envs are now useful
  on systems which don't have the c lib installed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure consistent handling of classes by fenced_code and codehilite (#1033)</title>
<updated>2020-10-08T17:18:28+00:00</updated>
<author>
<name>Waylan Limberg</name>
<email>waylan.limberg@icloud.com</email>
</author>
<published>2020-10-08T17:18:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=c0b1dc5d315624799ac1ba380eced9838e7f4bca'/>
<id>c0b1dc5d315624799ac1ba380eced9838e7f4bca</id>
<content type='text'>
* All non-language classes should always be assigned to the pre tag.
* The language identifying class should never be included with the
general list of classes.

Fixes #1032</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* All non-language classes should always be assigned to the pre tag.
* The language identifying class should never be included with the
general list of classes.

Fixes #1032</pre>
</div>
</content>
</entry>
<entry>
<title>Update tests for pygments-2.7.1</title>
<updated>2020-10-07T14:06:56+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2020-10-07T13:01:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=c2904eac1a6daf8a3aaef6af0791b101e1971544'/>
<id>c2904eac1a6daf8a3aaef6af0791b101e1971544</id>
<content type='text'>
Closes #1030
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #1030
</pre>
</div>
</content>
</entry>
<entry>
<title>Support unicode ids in toc (#970)</title>
<updated>2020-10-01T18:54:37+00:00</updated>
<author>
<name>Antoine</name>
<email>me@atelierhsn.com</email>
</author>
<published>2020-10-01T18:54:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=2e0962ef1412b0cd566331954aff82711ce93acf'/>
<id>2e0962ef1412b0cd566331954aff82711ce93acf</id>
<content type='text'>
A second function, `slugify_unicode` was added rather than changing the existing function so as to maintain backward compatibility. While an `encoding` parameter was added to the `slugify` function, we can't expect existing third party functions to accept a third parameter. Therefore, the two parameter API was preserved with this change.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A second function, `slugify_unicode` was added rather than changing the existing function so as to maintain backward compatibility. While an `encoding` parameter was added to the `slugify` function, we can't expect existing third party functions to accept a third parameter. Therefore, the two parameter API was preserved with this change.</pre>
</div>
</content>
</entry>
<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>Fix complex scenarios with definition, ordered, and unordered lists (#1007)</title>
<updated>2020-07-27T12:52:58+00:00</updated>
<author>
<name>Isaac Muse</name>
<email>faceless.shop@gmail.com</email>
</author>
<published>2020-07-27T12:52:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-markdown.git/commit/?id=370e17b3923d7d8f4709652bc24b695271a0210d'/>
<id>370e17b3923d7d8f4709652bc24b695271a0210d</id>
<content type='text'>
Fixes #918.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #918.</pre>
</div>
</content>
</entry>
</feed>
