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

feat(preset-tagify): add excludeTags option #1047

Merged
merged 7 commits into from Jun 1, 2022
Merged

feat(preset-tagify): add excludeTags option #1047

merged 7 commits into from Jun 1, 2022

Conversation

chu121su12
Copy link
Collaborator

@chu121su12 chu121su12 commented Jun 1, 2022

This PR adds option to ignore specified tags from being processed. Primarily used for h1-h6.

/cc @zojize If the default values are not ok on the main plugin maybe we'll try them only on runtime.

Edit: added b and table

@netlify
Copy link

netlify bot commented Jun 1, 2022

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 41e507d
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/629778fad473590008305d60
😎 Deploy Preview https://deploy-preview-1047--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@chu121su12 chu121su12 marked this pull request as ready for review June 1, 2022 03:34
@chu121su12 chu121su12 requested a review from antfu as a code owner June 1, 2022 03:34
* Tags excluded from processing.
* @default ['b', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'table']
*/
excludedTags?: string[]
Copy link
Member

@antfu antfu Jun 1, 2022

Choose a reason for hiding this comment

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

Should also be possible to accept regexes

@antfu antfu enabled auto-merge (squash) June 1, 2022 14:38
@antfu antfu merged commit cc7c763 into main Jun 1, 2022
@antfu antfu deleted the feat/exclude-tags branch June 1, 2022 14:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants