|
1 | 1 | # Change Log
|
2 | 2 |
|
| 3 | +## 1.0.0b1 - 2021-03-31 |
| 4 | + |
| 5 | +[Full commit log](https://github.com/executablebooks/markdown-it-py/compare/v0.6.2...9ecda04) |
| 6 | + |
| 7 | +This is the first beta release of the stable v1.x series. |
| 8 | + |
| 9 | +There are four notable (and breaking) changes: |
| 10 | + |
| 11 | +1. The code has been synchronised with the upstream Markdown-It v12.0.4. |
| 12 | + In particular, this update alters the parsing of tables to be consistent with the GFM specification: <https://github.github.com/gfm/#tables-extension-> |
| 13 | + A number of parsing performance and validation improvements are also included. |
| 14 | +2. `Token.attrs` are now stored as dictionaries, rather than a list of lists. |
| 15 | + This is a departure from upstream Markdown-It, allowed by Pythons guarantee of ordered dictionaries (see [#142](https://github.com/markdown-it/markdown-it/issues/142)), and is the more natural representation. |
| 16 | + Note `attrGet`, `attrSet`, `attrPush` and `attrJoin` methods remain identical to those upstream, |
| 17 | + and `Token.as_dict(as_upstream=True)` will convert the token back to a directly comparable dict. |
| 18 | +3. The use of `AttrDict` has been replaced: |
| 19 | + For `env` any Python mutable mapping is now allowed, and so attribute access to keys is not (differing from the Javascript dictionary). |
| 20 | + For `MarkdownIt.options` it is now set as an `OptionsDict`, which is a dictionary sub-class, with attribute access only for core MarkdownIt configuration keys. |
| 21 | +4. Introduction of the `SyntaxTreeNode`. |
| 22 | + This is a more comprehensive replacement for `nest_tokens` and `NestedTokens` (which are now deprecated). |
| 23 | + It allows for the `Token` stream to be converted to/from a nested tree structure, with opening/closing tokens collapsed into a single `SyntaxTreeNode` and the intermediate tokens set as children. |
| 24 | + See [Creating a syntax tree](https://markdown-it-py.readthedocs.io/en/latest/using.html#creating-a-syntax-tree) documentation for details. |
| 25 | + |
| 26 | +### Additional Fixes 🐛 |
| 27 | + |
| 28 | +- Fix exception due to empty lines after blockquote+footnote |
| 29 | +- Fix linkify link nesting levels |
| 30 | +- Fix the use of `Ruler.at` for plugins |
| 31 | +- Avoid fenced token mutations during rendering |
| 32 | +- Fix CLI version info and correct return of exit codes |
| 33 | + |
3 | 34 | ## 0.6.2 - 2021-02-07
|
4 | 35 |
|
5 | 36 | This release brings Markdown-It-Py inline with Markdown-It v11.0.1 (2020-09-14), applying two fixes:
|
|
0 commit comments