diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 61921c3..12ac322 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -1197,7 +1197,8 @@ var IPython = (function (IPython) { var new_cell = null; for (i=0; i raw + // handle never-released plaintext name for raw cells if (cell_data.cell_type === 'plaintext'){ cell_data.cell_type = 'raw'; } diff --git a/IPython/nbformat/v3/nbbase.py b/IPython/nbformat/v3/nbbase.py index a57c2b9..4b318ff 100644 --- a/IPython/nbformat/v3/nbbase.py +++ b/IPython/nbformat/v3/nbbase.py @@ -114,7 +114,8 @@ def new_code_cell(input=None, prompt_number=None, outputs=None, def new_text_cell(cell_type, source=None, rendered=None): """Create a new text cell.""" cell = NotebookNode() - # handle short-lived plaintext name for raw cells + # VERSIONHACK: plaintext -> raw + # handle never-released plaintext name for raw cells if cell_type == 'plaintext': cell_type = 'raw' if source is not None: diff --git a/IPython/nbformat/v3/nbpy.py b/IPython/nbformat/v3/nbpy.py index 8bef009..1130cee 100644 --- a/IPython/nbformat/v3/nbpy.py +++ b/IPython/nbformat/v3/nbpy.py @@ -68,6 +68,7 @@ class PyReader(NotebookReader): state = u'markdowncell' cell_lines = [] kwargs = {} + # VERSIONHACK: plaintext -> raw elif line.startswith(u'# ') or line.startswith(u'# '): cell = self.new_cell(state, cell_lines, **kwargs) if cell is not None: