Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Custom tags#9

Open
Mesoptier wants to merge 6 commits intoAutomattic:masterfrom
Webador:custom-tags
Open

Custom tags#9
Mesoptier wants to merge 6 commits intoAutomattic:masterfrom
Webador:custom-tags

Conversation

@Mesoptier
Copy link

This PR allows users to specify their own tags.

Example:

return interpolateComponents({
    mixedString: '<<link>>text<</link>>',
    components: {
        link: <a href="#" />,
    },
    tags: {
        componentOpen: ['<<', '>>'],
        componentClose: ['<</', '>>'],
        componentSelfClosing: ['<<', '/>>'],
    },
});

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant