Problem: markdown export now without blank between hash and section title

26 views
Skip to first unread message

Josef

unread,
Oct 15, 2022, 7:42:57 AM10/15/22
to leo-editor
Markdown headings start with hashes like # myheading,
however recently the blank between the hash and the section title is no longer present on export. 

This means, when I try to translate the markdown with pandoc to latex, I get no longer section headings, but the hashes are escaped and appear literalli in the latex source.

I need this fixed asap, because I use the Leo to markdown to latex translation a lot.

Best regards, Josef

Thomas Passin

unread,
Oct 15, 2022, 8:52:22 AM10/15/22
to leo-editor
I have submitted PR 2912 to fix this issue.  When accepted, it will show up in the devel branch.  In the meantime, you can fix this yourself:

1. Open the leoPyRef outline using the File/Open Specific Leo File menu item.
2. Do a search for the string headline_str = '##' + headline
3. Add a space after the ## so that the string now reads 

headline_str = '## ' + headline

4. Save the outline and restart Leo.

This fix will work until the next time you update to a newer version of Leo.  The newer version should include the change.  This all assumes that you have been using the viewrendered3 plugin.

Thomas Passin

unread,
Oct 15, 2022, 1:04:23 PM10/15/22
to leo-editor
Update: This PR has been approved and is now in the devel branch.
Reply all
Reply to author
Forward
0 new messages