From 55ad5a9bc512c9a4047f13db23a3d0810e445512 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Wed, 16 Oct 2019 00:50:51 +0200 Subject: [PATCH] Fix active cells in .md extension #347 --- jupytext/cell_to_text.py | 13 +++++++------ tests/test_active_cells.py | 32 ++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/jupytext/cell_to_text.py b/jupytext/cell_to_text.py index 47a572951..a39a3dc3d 100644 --- a/jupytext/cell_to_text.py +++ b/jupytext/cell_to_text.py @@ -115,6 +115,7 @@ def __init__(self, *args, **kwargs): self.comment = '' def html_comment(self, metadata, code='region'): + """Protect a Markdown or Raw cell with HTML comments""" if metadata: region_start = ['