Skip to content

Feature request: Support react children elements #4

Description

@slavik-chapelskyi

Your library perfectly fits into one of my needs and renders hashtags from a string.
But in other place I need to "hashtagify" html string and basically what I need it to be able somehow to parse not only a string child.

Example:

const text = "<p>Here is some content with a #hashtag</p>";

<ReactHashtag renderHashtag={hashtag => <Hashtag hashtag={hashtag} />}>
	<div
        dangerouslySetInnerHTML={{
          __html: text
        }}
      />
</ReactHashtag>

I am wondering is this somehow possible to be added to this package?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions