Commit 4e442fa
authored
Rewrite html plugin (#23)
Rewrite ALL!!!
## Breaking Changes
- Require [textlint v13.0.0](https://textlint.github.io/blog/2023/01/27/textlint-13.html)+
- html plugin is written in Pure ESM
- Require Node.js 16+
- Convert JavaScript to TypeScript
## Features
- use [rehype](https://github.com/rehypejs/rehype#readme) instead of hast
- support `<h1>` ... `<h6>`'s `levels`
- support `<ul>` and `<ol>`
- support `<img />`'s `alt` and `title`
- support `<a>`'s `title`
## Bug Fixes
fix #19
fix textlint-ja/textlint-rule-no-synonyms#4
fix #2
close #15 - It looks like rule implementation issue https://github.com/KeitaMoromizato/textlint-rule-max-appearence-count-of-words/blob/master/src/max-appearence-count-of-words.js
## Testings
- New snapshot testing
- Tree Dump view for human
📝 Welcome to contribute! We looking for new maintainer!
- #211 parent 4435db6 commit 4e442fa
166 files changed
Lines changed: 26480 additions & 10930 deletions
File tree
- .github/workflows
- example
- .github
- test
- src
- test
- ast-test-case
- adoption
- body-body-attributes
- body-html-attributes
- character-data
- comments
- comment
- directive-in-fragment
- doctype-almost-standards
- doctype-legacy-double
- doctype-legacy-single
- doctype-nameless
- doctype-quirksmode-ibm
- doctype-quirksmode-xml
- doctype-quotes-double
- doctype-quotes-single
- doctype
- element-attributes-names
- element-attributes
- element-auto-close-document
- element-auto-close-fragment
- element-broken-close
- element-children
- element-closing-attributes
- element-closing
- element-empty
- element-loose-close-document
- element-loose-close-fragment
- element-opening
- element-void-close
- element-void
- element
- empty-document
- empty-fragment
- entities-in-literals
- entities
- fragment-comment
- fragment-p
- fragment-script
- fragment-style
- h1-h7
- issue-15
- list
- processing-instruction
- quirksmode-off
- quirksmode-on
- test
- verbose
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments