forked from Python-Markdown/markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows better interoperation with CSS style sheets, as the align object on the TH is skipped if the css uses 'text-align: inherit' and the previous 'text-align' is used instead (or the default: left). Added an override to restore the original `align` behavior Moved existing tests to the new test infrastructure Added new tests to test the configuration parameter Updated documentation to document the configuration parameter.
- Loading branch information
Showing
8 changed files
with
943 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
title: Release Notes for v3.4 | ||
|
||
# Python-Markdown 3.4 Release Notes | ||
|
||
Python-Markdown version 3.4 supports Python versions 3.6, 3.7, 3.8, 3.9 and PyPy3. | ||
|
||
## Backwards-incompatible changes | ||
|
||
### The `table` extension now uses a `style` attribute instead of `align` attribute for alignment. | ||
|
||
The [HTML4 spec][spec4] specifically | ||
deprecates the use of the `align` attribute and it does not appear at all in the | ||
[HTML5 spec][spec5]. Therefore, by default, the [table] extension will now use the `style` | ||
attribute (setting just the `text-align` property) in `td` and `th` blocks. | ||
|
||
[spec4]: https://www.w3.org/TR/html4/present/graphics.html#h-15.1.2 | ||
[spec5]: https://www.w3.org/TR/html53/tabular-data.html#attributes-common-to-td-and-th-elements | ||
|
||
The former behavior is available by setting the setting `use_align_attribute` configuration | ||
option to `True` when adding the extension. | ||
|
||
For example, to configure the old `align` behavior: | ||
|
||
```python | ||
from markdown.extensions.tables import TableExtension | ||
|
||
markdown.markdown(src, extensions=[TableExtension(use_align_attribute=True)]) | ||
``` | ||
|
||
In addition, tests were moved to the modern test environment. | ||
|
||
## New features | ||
|
||
The following new features have been included in the 3.3 release: | ||
|
||
* Use `style` attribute in tables for alignment instead of `align` for better CSS | ||
inter-operation. The old behavior is available by setting `use_align_attribute=True` when | ||
adding the extension. | ||
|
||
## Bug fixes | ||
|
||
The following bug fixes are included in the 3.4 release: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.