Skip to content

Commit 36c386d

Browse files
authored
🚀 RELEASE: v1.0.0b1 (#152)
1 parent 06d66b8 commit 36c386d

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Change Log
22

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+
334
## 0.6.2 - 2021-02-07
435

536
This release brings Markdown-It-Py inline with Markdown-It v11.0.1 (2020-09-14), applying two fixes:

markdown_it/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .main import MarkdownIt # noqa: F401
22

33

4-
__version__ = "0.6.2"
4+
__version__ = "1.0.0b1"

0 commit comments

Comments
 (0)