rebuild_qmd.recreate_qmd_from_formatted_py
convert.rebuild_qmd.recreate_qmd_from_formatted_py(
qmd_path,
py_path,
python_blocks,
*,
verbose=False,
)Recreate a QMD file by splicing formatted Python back into its blocks.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| qmd_path | str | Path | Path to the original .qmd file. |
required |
| py_path | str | Path | Path to the formatted temporary .py file. |
required |
| python_blocks | list[dict] | Block metadata collected by QmdToPyConverter. |
required |
| verbose | bool | If True, print progress information. | False |
Returns
| Name | Type | Description |
|---|---|---|
| Path | Path to the rewritten .qmd file. |