Skip to content

Commit 79eaf8a

Browse files
committed
check and intercept run-python marco in md_to_pptx
1 parent c2b8e61 commit 79eaf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/md_to_pptx/md_to_pptx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _invoke(self, tool_parameters: dict) -> Generator[ToolInvokeMessage, None, N
3232
pptx_template_file: Optional[File] = tool_parameters.get("pptx_template_file")
3333

3434
# check parameters
35-
if "```run-python" in md_text:
35+
if "``` run-python" in md_text:
3636
raise ValueError("The `run-python` marco of md2pptx is not allowed.")
3737
if pptx_template_file and not isinstance(pptx_template_file, File):
3838
raise ValueError("Not a valid file for pptx template file")

0 commit comments

Comments
 (0)