Skip to content

Commit

Permalink
Set cell_marker on first cell with setdefault #107
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 29, 2018
1 parent d03f5f8 commit c4232b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/jupytext.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def writes(self, nb, **kwargs):

for cell in nb.cells:
if looking_for_first_markdown_cell and cell.cell_type == 'markdown':
cell.metadata['cell_marker'] = '"""'
cell.metadata.setdefault('cell_marker', '"""')
looking_for_first_markdown_cell = False

cell_exporters.append(self.format.cell_exporter_class(
Expand Down

0 comments on commit c4232b4

Please sign in to comment.