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

Allow numerals in custom token class names #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheCodeForge
Copy link

Updates the snake regex used to convert custom token class names to render function names, to allow for the use of numerals.

Example use case is in writing custom functions for h1 - h6 elements. In this case, token class names are CustomH1Token to CustomH6Token.

Expected behavior is that it would attempt to invoke functions render_custom_h1_token to render_custom_h6_token

However, current behavior instead attempts to invoke the function render_custom_h_token(self, token) for all six classes.

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.

1 participant