Skip to content

Commit

Permalink
keep 'deletable' and 'format' metadata in text representation
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 14, 2018
1 parent 93ddf2a commit 036c572
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jupytext/cell_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@

_BOOLEAN_OPTIONS_DICTIONARY = [('hide_input', 'echo', True),
('hide_output', 'include', True)]
_IGNORE_METADATA = ['collapsed', 'autoscroll', 'scrolled',
'deletable', 'format', 'trusted', 'skipline',
'noskipline', 'lines_to_next_cell',
'lines_to_end_of_cell_marker']
_IGNORE_METADATA = [
# Frequent cell metadata that should not enter the text representation
# (these metadata are preserved in the paired Jupyter notebook).
'autoscroll', 'collapsed', 'scrolled', 'trusted',
# Pre-jupytext metadata
'skipline', 'noskipline',
# Jupytext metadata
'lines_to_next_cell', 'lines_to_end_of_cell_marker']
_PERCENT_CELL = re.compile(
r'(# |#)%%([^\{\[]*)(|\[raw\]|\[markdown\])([^\{\[]*)(|\{.*\})\s*$')

Expand Down

0 comments on commit 036c572

Please sign in to comment.