Skip to content

Commit

Permalink
Comment markdown cells in py light format #66
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Sep 19, 2018
1 parent d16d3e8 commit 034daf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions jupytext/cell_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def is_code(self):
# Treat markdown cells with metadata as code cells (#66)
if self.cell_type == 'markdown' and self.metadata:
self.metadata['cell_type'] = self.cell_type
self.source = comment(self.source, self.prefix)
return True
return super(LightScriptCellExporter, self).is_code()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
# ---

# + {"slideshow": {"slide_type": "slide"}, "cell_type": "markdown"}
A markdown cell
# A markdown cell

# + {"slideshow": {"slide_type": ""}}
1+1

# + {"cell_style": "center", "slideshow": {"slide_type": "fragment"}, "cell_type": "markdown"}
Markdown cell two
# Markdown cell two

0 comments on commit 034daf4

Please sign in to comment.