Thanks for sharing the script; that's a very helpful reference.

I'm actually using Outlinely and Workflowy, which produce OPML that has slightly different issues, but by referencing your script I was able to make some progress and I've almost got it working now, so thank you!

On Sat, Apr 13, 2019 at 8:17 PM Benct Philip Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Followup:

The Dynalist HTML export

````html
<!DOCTYPE html><html><body><ul><li>Untitled<ul><li>Soluta
Laborum<ul><li>Et Modi<br>Porro Aut<br><br>Pariatur
Velit<ul><li>Sint Laboriosam<br>In Sed</li></ul></li><li>Debitis
Harum<ul><li>Velit Libero<br>Maxime <i>provident</i> <b>nemo</b>
`assumenda`.</li></ul></li><li>Impedit
Voluptas</li></ul></li></ul></li></ul></body></html>
````

or with some line breaks added for readability

````html
<!DOCTYPE html>
<html>
<body>
<ul>
<li>Untitled
<ul>
<li>Soluta Laborum
<ul>
<li>Et Modi
<br>Porro Aut
<br>
<br>Pariatur Velit
<ul>
<li>Sint Laboriosam
<br>In Sed</li></ul></li>
<li>Debitis Harum
<ul>
<li>Velit Libero
<br>Maxime
<i>provident</i>
<b>nemo</b> `assumenda`.</li></ul></li>
<li>Impedit Voluptas</li></ul></li></ul></li></ul></body></html>
````

in some ways gives results which probably are more like what the
OP probably expects when converted to Markdown with Pandoc

````markdown
-   Untitled
     -   Soluta Laborum
         -   Et Modi\
             Porro Aut\
             \
             Pariatur Velit
             -   Sint Laboriosam\
                 In Sed
         -   Debitis Harum
             -   Velit Libero\
                 Maxime *provident* **nemo** \`assumenda\`.
         -   Impedit Voluptas
````

There are still some issues, like hard line breaks instead of
paragraphs, and the code showing up as raw markdown in the HTML
instead of inside `<code>` tags.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAE3gDhw0dWYQvYy9p_PF-QNno-%3DiCUaKOgSEE%2BLwipYcN9rVmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.