Skip to content

feat: export attributesToProps#174

Merged
remarkablemark merged 2 commits intoremarkablemark:masterfrom
cbbfcd:feat/patch-01
Sep 11, 2020
Merged

feat: export attributesToProps#174
remarkablemark merged 2 commits intoremarkablemark:masterfrom
cbbfcd:feat/patch-01

Conversation

@cbbfcd
Copy link
Copy Markdown
Contributor

@cbbfcd cbbfcd commented Sep 10, 2020

What is the motivation for this pull request?

Sometimes we need custom the replacer, and so we maybe need the attributesToProps too.

Closes #172

What is the current behavior?

Users need to implement it themselves

What is the new behavior?

just require the attributesToProps function

Checklist:

  • Tests
  • Documentation
  • Types

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 10, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 76f8b0c on cbbfcd:feat/patch-01 into e0e0791 on remarkablemark:master.

Copy link
Copy Markdown
Owner

@remarkablemark remarkablemark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Can you also update the README.md documentation with an applicable example of attributesToProps?

@cbbfcd
Copy link
Copy Markdown
Contributor Author

cbbfcd commented Sep 11, 2020

Looks good! Can you also update the README.md documentation with an applicable example of attributesToProps?

ok

Copy link
Copy Markdown
Owner

@remarkablemark remarkablemark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 多谢 @cbbfcd

@remarkablemark remarkablemark added the feature New feature or request label Sep 11, 2020
@remarkablemark remarkablemark merged commit 461883e into remarkablemark:master Sep 11, 2020
@remarkablemark
Copy link
Copy Markdown
Owner

Published 0.14.0:

npm:

npm install html-react-parser@0.14.0

yarn:

yarn add html-react-parser@0.14.0

@cbbfcd
Copy link
Copy Markdown
Contributor Author

cbbfcd commented Sep 11, 2020

@remarkablemark 哈哈哈哈,客气

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using replace not able to use style

3 participants