def transform_paragraphs(notebook, transformations=None):
""""""
if transformations:
f = compose(*reversed(transformations))
notebook["paragraphs"] = [f(p) for p in notebook.get("paragraphs", [])]
return notebook
评论列表
文章目录