Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Releases: textlint/markdown-to-ast

3.4.0

14 Jun 13:50
@azu azu
Compare
Choose a tag to compare

Upgrade remark #12

3.2.3

18 Feb 11:25
@azu azu
Compare
Choose a tag to compare

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

29 Oct 13:33
@azu azu
Compare
Choose a tag to compare
3.1.1

3.0.0 : use mdast instead of CommonMark

17 Feb 00:36
@azu azu
Compare
Choose a tag to compare

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.

2.2.0

07 Jan 11:03
@azu azu
Compare
Choose a tag to compare

Remove un-used properties · 317cfe2

2.1.0

07 Jan 10:40
@azu azu
Compare
Choose a tag to compare