-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider using pandoc markdown for "div"s and RMarkdown for code cells in Jupytext markdown #422
Comments
Hello @choldgraf , I agree that pandoc div are easier to type, and nicer to read in a text editor. But... they don't look nice yet in GitHub or in VS code... that was the reason why we did'nt took them. That said, sure, why not allowing them in addition to the other cell markers, as you suggest? I'll think about that. The same remark holds for the RMarkdown code blocks: I don't think that |
Yeah, I agree with you on both points. I think it's a tricky situation. On the one hand, it simplifies things if the interfaces people are familiar with will understand the syntax that is used. On the other hand, embedding lots of comment blocks in the markdown is also not the most visually-appealing, even if the comments are properly colored. Perhaps another option would be to allow for |
Hello @choldgraf , I see that Markdown allows both If you like the idea, I'll add a test (to ensure that Jupytext leaves |
I have been thinking it over, and almost wonder if this shouldn't be handled at the tech level, but instead at the documentation level. Rather than building new features into the vanilla markdown, why not just tell users that they should use RMarkdown if they need the ability to distinguish "runnable" from "non-runnable" code blocks? (this should just be a matter of adding the |
It has been some time since we last discussed this...
|
Yep, that sounds good to me. |
In using Jupytext, I've found that I'd love to have a combination of two features from two different markup languages supported by jupytext:
Pandoc div fences for markdown cells
I often want to tag-up my markdown with metadata that is cell-specific, which means that I need to be able to separate out my markdown chunks into multiple cells. Right now in Jupytext, the way to do this is to write
<!-- md -->
and<!-- endmd -->
. This isn't bad, but it is a bit cumbersome. I find it much more streamlined to use the Pandoc syntax fordivs
, such as:as opposed to
This could be extended to other types as well, e.g.:
What do you think about supporting syntax such as this for Jupytext markdown?
RMarkdown code blocks in markdown cells
Another feature I love about RMarkdown is the ability to distinguish "regular" code blocks (using
python) from "runnable" code blocks (using
{python}). This could be a nice way to separate out the same behavior in Jupytext markdown.I'm curious what others think about incorporating these into the base flavor of Jupytext md (In addition to manually specifying with comments).
The text was updated successfully, but these errors were encountered: