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

[Feature Request] Specify pairs by regular expression #79

Open
meithon opened this issue Feb 25, 2024 · 3 comments
Open

[Feature Request] Specify pairs by regular expression #79

meithon opened this issue Feb 25, 2024 · 3 comments

Comments

@meithon
Copy link

meithon commented Feb 25, 2024

I really like the fastwrap feature of this plugin!
I would be very happy if fastwrap could be done in HTML (JSX).
Right now I am adding {<div>, <div>} but I would like to use it with other tags.
So I would like to use regular expressions to specify pairs.

Like this:

opts.internal_pairs = {
	{ "<.*>", "<\/.*>"},
}

I tried to implement it myself, but couldn't figure out where to add it.
I hope implement it 🙏

@altermo
Copy link
Owner

altermo commented Feb 25, 2024

It is on the TODO list for the next version.

@meithon
Copy link
Author

meithon commented Feb 25, 2024

Really? I look forward to the next version!

@Shock9616
Copy link

+1 this would be super useful! Definitely looking forward to it being added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants