Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for new maintainer #21

Open
2 tasks done
azu opened this issue May 8, 2021 · 1 comment
Open
2 tasks done

Looking for new maintainer #21

azu opened this issue May 8, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@azu
Copy link
Member

azu commented May 8, 2021

This project looking for new maintainers.
If you want to help us, then please say so.

This project has tasks that should be done.

Personally, I do not have a project using html plugin.
So This project looking for real users and maintainers.
Of course, I can review new PRs.

@azu azu added the help wanted Extra attention is needed label May 8, 2021
@azu azu pinned this issue May 8, 2021
@azu azu mentioned this issue Jan 29, 2023
azu added a commit that referenced this issue Jan 29, 2023
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! 

- #21
@azu
Copy link
Member Author

azu commented Jan 29, 2023

#23 Rewrite this.

  • Update AST Explorer Update textlint AST Explorer #25
  • We need to get more test.
  • Add Table Support
    // === properties ===
    // map `url` to Link node
    const txtNode = node as TxtBlockQuoteNode |
    TxtBreakNode |
    TxtCodeBlockNode |
    TxtCommentNode |
    TxtDeleteNode |
    TxtDocumentNode |
    TxtEmphasisNode |
    TxtHeaderNode |
    TxtHorizontalRuleNode |
    TxtHtmlNode |
    TxtImageNode |
    TxtLinkNode |
    TxtListItemNode |
    TxtListNode |
    TxtParagraphNode |
    TxtCodeNode |
    TxtStrNode |
    TxtStrongNode |
    TxtTableNode |
    TxtTableRowNode |
    TxtTableCellNode;
    if (txtNode.type === "Link") {
    if (txtNode.properties.href !== undefined) txtNode.url = txtNode.properties.href;
    if (txtNode.properties.title !== undefined) txtNode.title = txtNode.properties.title;
    } else if (txtNode.type === "Image") {
    if (txtNode.properties.alt !== undefined) txtNode.alt = txtNode.properties.alt;
    if (txtNode.properties.title !== undefined) txtNode.title = txtNode.properties.title;
    if (txtNode.properties.src !== undefined) txtNode.url = txtNode.properties.src;
    } else if (txtNode.type === "Header") {
    const depth = Number(txtNode.tagName.slice(1)) as TxtHeaderNode["depth"];
    if (depth > 0 && depth < 7) txtNode.depth = depth;
    } else if (txtNode.type === "List") {
    if (txtNode.tagName === "ul") {
    txtNode.ordered = false;
    } else if (txtNode.tagName === "ol") {
    txtNode.ordered = true;
    }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant