44from markdown .blockprocessors import BlockProcessor
55from markdown .extensions import Extension
66
7- from . import util
7+ from . import utils
88
99
1010class DivProcessor (BlockProcessor ):
@@ -13,12 +13,12 @@ def __init__(self, *args, types: dict, html_class: str, is_thm: bool, **kwargs):
1313 super ().__init__ (* args , ** kwargs )
1414 self .html_class = html_class
1515 self .is_thm = is_thm
16- self .types , self .start_pattern_choices , self .end_pattern_choices = util .init_env_types (types , self .is_thm )
16+ self .types , self .start_pattern_choices , self .end_pattern_choices = utils .init_env_types (types , self .is_thm )
1717 self .start_pattern = None
1818 self .end_pattern = None
1919
2020 def test (self , parent , block ):
21- typ = util .test_for_env_types (self .start_pattern_choices , parent , block )
21+ typ = utils .test_for_env_types (self .start_pattern_choices , parent , block )
2222 if typ is None :
2323 return False
2424 self .type_opts = self .types [typ ]
@@ -31,7 +31,7 @@ def run(self, parent, blocks):
3131 # generate default thm heading if applicable
3232 thm_heading_md = ""
3333 if self .is_thm :
34- thm_heading_md = util .gen_thm_heading_md (self .type_opts , self .start_pattern , blocks [0 ])
34+ thm_heading_md = utils .gen_thm_heading_md (self .type_opts , self .start_pattern , blocks [0 ])
3535 # remove starting delim (after generating thm heading from it, if applicable)
3636 blocks [0 ] = self .start_pattern .sub ("" , blocks [0 ])
3737
@@ -52,7 +52,7 @@ def run(self, parent, blocks):
5252 for _ in range (0 , i + 1 ):
5353 blocks .pop (0 )
5454 # add thm heading if applicable
55- util .prepend_thm_heading_md (self .type_opts , elem , thm_heading_md )
55+ utils .prepend_thm_heading_md (self .type_opts , elem , thm_heading_md )
5656 break
5757 # if no ending delim, restore and do nothing
5858 if not delim_found :
@@ -126,7 +126,7 @@ def __init__(self, **kwargs):
126126 )
127127 ]
128128 }
129- util .init_extension_with_configs (self , ** kwargs )
129+ utils .init_extension_with_configs (self , ** kwargs )
130130
131131 # set default options for individual types
132132 for type , opts in self .getConfig ("types" ).items ():
0 commit comments