-
What would you like to do?Understand the DescriptionI am trying to implement quarto support in For example, if the I have the following file:
The the following steps yield expected results: quarto convert --log-level warnings test1.qmd && mv test1.ipynb test1cp.ipynb
quarto convert --log-level warnings test1cp.ipynb
sdiff -s test1.qmd test1cp.qmd
> ---
> jupyter: python3
> ---
>
> But, if I have this other file:
The the following steps yield expected results: quarto convert --log-level warnings test2.qmd && mv test2.ipynb test2cp.ipynb
quarto convert --log-level warnings test2cp.ipynb
sdiff -s test2.qmd test2cp.qmd
> ---
> jupyter: python3
> ---
>
#| fig-cap: A line plot on a polar axis | #| fig-cap: |-
# | Should not be changed back to #| | #| A line plot on a polar axis
> #| Should not be changed back to
> This suggests that my understanding of the This leads me to other questions about the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Please use discussion for discussion/question. Python formatter does add a space after comment symbol, thus Quarto allows both for Python. |
Beta Was this translation helpful? Give feedback.
-
Ok, perfect, that makes life easier for me. I thought the formatters converting '#|' to '# |' broke cell options, but if quarto supports both '#|' and '# |' then, no special handling is needed on the But, it would still be good to have a specification file for the format. Is looking for |
Beta Was this translation helpful? Give feedback.
-
I was going based on https://quarto.org/docs/computations/inline-code.html, but some of the examples here https://quarto.org/docs/authoring/markdown-basics.html#source-code suggest otherwise. Perhaps the latter set is just for code formatting, but not for executable blocks and will be handled by a normal markdown parser? |
Beta Was this translation helpful? Give feedback.
Ok, perfect, that makes life easier for me. I thought the formatters converting '#|' to '# |' broke cell options, but if quarto supports both '#|' and '# |' then, no special handling is needed on the
nbqa
side.But, it would still be good to have a specification file for the format.
Is looking for
{python}
a valid way to look for python code blocks or is a wider range of syntax allowed to demarcate python code blocks?