Releases: textlint/markdown-to-ast
3.4.0
3.2.3
It contain some breaking change, but textlint don't define these as specification.
https://github.com/wooorm/remark/releases/tag/4.0.0
Fixes
- Fix parse error.
node.type
should always has value.
e.g. )
markdown-to-ast allows to parse table
format without error.
| Hello | World |
| :---- | -----: |
| How | are |
| you | today? |
Tests
- Add much test cases that are come from remark test case
remark 4.x change related markdown-to-ast
https://github.com/wooorm/remark/releases/tag/4.0.0
- horizontalRule => thematicBreak( markdown-to-ast still use
HorizontalRule
)
3.1.1
3.0.0 : use mdast instead of CommonMark
use mdast instead of CommonMark by azu · Pull Request #3 · azu/markdown-to-ast
markdown-to-ast 3.x use wooorm/mdast instead of jgm/commonmark.js as Markdown parser.
Breaking Changes
markdown-to-ast 3.0.0 has some breaking changes.
Breaking Change:
use mdast instead of CommonMark
Break CommonMark dependent.
If you have used CommonMark-dependent code, it may be broken.
CodeBlock
Node
before:
CodeBlock.raw
have not contain CodeBlock mark like ```
var code = 1;
after:
CodeBlock.raw
have contain CodeBlock mark like ```
The raw value of CodeBlock
node is following:
```
var code = 1;
```
if you want to get only code value, can get from node.vaule
.
Alt text of Image Node
before(CommonMark):
Alt text of Image node is Str
node.
after(mdast):
Alt text of Image node is not Str
node.
It is true that Alt text is a attribute of Image Node.