minor refactor

This commit is contained in:
Elijah 2024-10-04 10:10:13 +00:00
parent 860449f814
commit 38f396677d

View File

@ -784,8 +784,8 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock):
code, StringVar(_js_expr=r"/\/\/ \[!code.*?\]/g", _var_type=str), ""
)
if isinstance(code, str):
cleaned_code = re.sub(r"// \[!code.*?\]", "", code)
return cleaned_code
return re.sub(r"// \[!code.*?\]", "", code)
class TransformerNamespace(ComponentNamespace):