@@ -48,7 +48,7 @@ def __find_embed_keys(entry, path, option: Options, render_callback):
4848 Utils .__get_content (keys , entry , option , render_callback )
4949
5050 @staticmethod
51- def __get_content (keys_array : list , entry , option : Options , render_callback ):
51+ def __get_content (keys_array , entry , option : Options , render_callback ):
5252 if keys_array is not None and len (keys_array ) > 0 :
5353 key = keys_array [0 ]
5454 if len (keys_array ) == 1 and keys_array [0 ] in entry :
@@ -145,11 +145,11 @@ def json_to_html(entry_obj, key_path: list, option: Options):
145145 def __enumerate_content (content , entry , option ):
146146 if len (content ) > 0 :
147147 if isinstance (content , list ):
148- json_array_rte_content = []
148+ array_content = []
149149 for item in content :
150150 result = Utils .__enumerate_content (item , entry , option )
151- json_array_rte_content .append (result )
152- return json_array_rte_content
151+ array_content .append (result )
152+ return array_content
153153 if isinstance (content , dict ):
154154 if 'type' and 'children' in content :
155155 if content ['type' ] == 'doc' :
0 commit comments