We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
textlint-plugin-html/src/mapping.ts
Lines 3 to 23 in 08d7a6a
Currently, tagName mapping is hardcode. However some use cases force change the mapping.
For example, a user want to treat div as p. Of course, the user can create custom plugin. But, it is easy to add new option than creat a fork.
div
p
{ "plugins": { "html": { "tagNames": { // new mapping "div": "Paragraph" } } } }
This option is a bit inflexible and we need to consider options that can satisfy a more varied set of use cases.
📝 textlintrc is JSON. So, we can not write JS Code as logics in option.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
textlint-plugin-html/src/mapping.ts
Lines 3 to 23 in 08d7a6a
Currently, tagName mapping is hardcode.
However some use cases force change the mapping.
For example, a user want to treat
div
asp
.Of course, the user can create custom plugin.
But, it is easy to add new option than creat a fork.
This option is a bit inflexible and we need to consider options that can satisfy a more varied set of use cases.
📝 textlintrc is JSON. So, we can not write JS Code as logics in option.
The text was updated successfully, but these errors were encountered: