Skip to content

Conversation

siburb
Copy link

@siburb siburb commented Jul 14, 2020

Added two new properties to Style to allow us to iterate through the named capturing groups in the regex, and also to retrieve styles by name.

This allows us to apply any other style to a named sub-range of the matched range.

Added an example for h3 to the 'one-dark-custom' style.

#28

@siburb
Copy link
Author

siburb commented Jul 15, 2020

Whilst this works, it doesn't allow the named groups to inherit the font/traits/size of the parent. Hold off on reviewing it for now and I'll do some work on that.

@ruddfawcett
Copy link
Owner

This looks great thus far — thanks, @siburb.

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.

2 participants