R Markdown styled directives #133
-
Hi, I discovered Jupyter Book in early 2019, but didn't really had time to further look into it. In the meantime I've been doing a lot with R Markdown and Pandoc and now, rediscovering MyST, am happy that this ecosystem is growing. I wondered, however, why you went for the following directive-argument syntax
...instead of doing it knitr-like...
...given that one of your principles is
One of the reasons why Markdown is so great is its ubiquity: If I decide to use a certain toolset, I can be pretty sure that my content will also work with different toolsets. It makes my content future proof. Sadly, the MyST directive syntax doesn't degrade nicely in R Markdown documents nor Pandoc's markdown. At executablebooks/MyST-Parser#63 it is mentioned that the knitr style syntax breaks an existing regex, which seems to be the reason why you proposed a different one. I did not dig deeper into it, but wonder why you ultimately decided as you did? And, subsequently, whether the knitr style could be introduced again at a later point in time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Well I guess essentially the directive syntax is not looking to imitate knitr, it is looking to imitate rST directives/Jupyter Notebook cell metadata. The arguments here are the not same as the arguments in knitr, aka the chunk metadata, in fact the
Maybe you can explain more here what you mean?
Again I would ask for clarification on what you mean by degrade? |
Beta Was this translation helpful? Give feedback.
Well I guess essentially the directive syntax is not looking to imitate knitr, it is looking to imitate rST directives/Jupyter Notebook cell metadata. The arguments here are the not same as the arguments in knitr, aka the chunk metadata, in fact the
key: val
are what map to the knitr arguments.You can translate between the two though using jupytext: see https://jupyterbook.org/file-types/jupytext.html#file-types-custom and https://jupytext.readthedocs.io/en/latest/formats.html
Maybe you can explain more here what you mean?
From my perspective, R Markdown is a proprietary format; there is no other tool that I know of that can directly "r…