Open mfhepp opened 2 years ago
For completeness, here are the Jupytext settings I used:
jupyter:
celltoolbar: Slideshow
jupytext:
cell_metadata_filter: all,-trusted
formats: ipynb,md
notebook_metadata_filter: all
text_representation:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.14.0
kernelspec:
display_name: aih
language: python
name: aih
language_info:
codemirror_mode:
name: ipython
version: 3
file_extension: .py
mimetype: text/x-python
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.10.5
---
/CC @damianavila
Cross-referencing https://github.com/mwouts/jupytext/issues/66
RISE is a very useful extension to Jupyter Notebook that allows presenting notebooks directly in the form of Reveal.JS slides.
Now, when converting such notebooks to Markdown, cells that directly contain RISE-specific meta-data like
slide
andsub_slide
result in Markdown that is incompatible with Pandoc`s fenced div syntax:Example:
This cell
creates the following Markdown:
A similar problem exists with RISE Speaker Notes. In the notebook, they look like so:
The conversion turns them into
While this does not break the layout, the type of the content is not accessible to Pandoc filters (at least not easily).
IMO, it would be better to represent them as
/CC @tarleb