I tried importing the two files I've been using for my experiments and they 
both seem right.  I didn't try round-tripping the notebook files, and I 
didn't look closely to see if there were any extra blank lines inserted.

I do have two suggestions, though, both trivial to implement.

1. Only use the first 6 words of the first line for the headline, the way 
my script did.  It's much more readable that way.  Using the long headlines 
as the importer currently does makes for headlines that are harder to read 
and more annoying without being helpful.

2. Put an @nocolor directive at the top of each markdown cell.  Otherwise 
the leading comment signs cause the colorizer to syntax-color the cell's 
content as comments, and with most themes that makes the text harder to 
read.

On Tuesday, October 29, 2024 at 7:21:00 PM UTC-4 Edward K. Ream wrote:

> PR #4138 <https://github.com/leo-editor/leo-editor/pull/4138> (@jupytext 
> improvements) is ready for review. All tests pass and the generated code 
> looks reasonable to me.
>
>
> This PR causes Leo to split @jupytext nodes into a *flat *list of child 
> nodes. This splitting happens only the *first* time Leo reads such a 
> node. You can inhibit this action by adding any child node (including an 
> empty node) to the @jupytext tree.
>
>
> The algorithm follows Thomas's prototype script closely, but not exactly. 
> This PR does not attempt to determine the indentation level of markdown 
> nodes. Any such enhancements must wait until Leo 6.8.3 or later. It's time 
> to test what we have.
>
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/beebb0f1-67ea-4add-8696-06f6fe44f248n%40googlegroups.com.

Reply via email to