On Sun, Feb 22, 2026 at 7:18 AM Morgul <[email protected]> wrote:

Leo importer seems to love to add blank lines at the end of nodes, then Leo
> happily ignores them when saving, leaving exactly one line of text between
> sections.
>

Thanks for this report. You have probably identified a bug in the @auto
importer code for markdown files.

The fix is likely to be to define a do-nothing *Markdown_Importer.post_pass*
method. I'll create a PR soon. All existing unit tests pass with the
addition of this new method.

By the way, how does Leo know which Markdown header format to use
>

*Markdown_Importer.gen_block* and its helpers contain the gory details. If
I read the code correctly, the code supports both hashes (leading `#`
characters) and underlined section names. There is no setting, nor should
there be one.

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/CAMF8tS2_Mjz_NqKb8%3DAwcYrOngXiRHMm80Vx9ZrcBEESWEdSKA%40mail.gmail.com.

Reply via email to