From ccacc9a6ae2367568fdfee9083fba7dddba83d16 2017-05-13 22:50:17 From: Matti Remes Date: 2017-05-13 22:50:17 Subject: [PATCH] add markdown cell magic function Using display modules fn --- diff --git a/IPython/core/magics/display.py b/IPython/core/magics/display.py index c4a8f44..5259b35 100644 --- a/IPython/core/magics/display.py +++ b/IPython/core/magics/display.py @@ -63,3 +63,8 @@ class DisplayMagics(Magics): def html(self, line, cell): """Render the cell as a block of HTML""" display(HTML(cell)) + + @cell_magic + def markdown(self, line, cell): + """Render the cell as Markdown text block""" + display(Markdown(cell))