Open TheCodeForge opened 1 month ago
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.
CustomH1Token
CustomH6Token
Expected behavior is that it would attempt to invoke functions render_custom_h1_token to render_custom_h6_token
render_custom_h1_token
render_custom_h6_token
However, current behavior instead attempts to invoke the function render_custom_h_token(self, token) for all six classes.
render_custom_h_token(self, token)
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
toCustomH6Token
.Expected behavior is that it would attempt to invoke functions
render_custom_h1_token
torender_custom_h6_token
However, current behavior instead attempts to invoke the function
render_custom_h_token(self, token)
for all six classes.