opml title node from markdown?
Hello
Not sure if I am missing something but I would like to export a markdown file (e.g. generated in nvALT) viewed in Marked2 to opml with the ability to determine the title node. In examples I could find (e.g. here http://brettterpstra.com/2013/08/18/markdown-to-mind-map/) the heading 1 syntax (# H1) resulted in the title node (when view in Mind Node). In my current setup the heading 1 all show up as secondary nodes in Mindnode (and when converting back to *.md from opml will actually show up e.g. as ## heading2).
Thank you and best regards
Otini
PS Converting markdown straight from Ulysses to MindNode the heading 1 is interpreted as the title node.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 22 Jun, 2017 03:06 PM
There does seem to be some inconsistency in this, and I'll look into it.
Right now, the title node is taken from MultiMarkdown metadata (title:
key), so if you're document looks like:
title: Main Node Title
# Header 1
## Subsection 1.1
then a round trip from Marked->OPML->MindNode->Markdown (or
Marked->OPML->Marked->Markdown) will result in:
# Main Node Title
## Header 1
- Subsection 1.1
## Metadata
- title
Main Node Title
Some of this is unavoidable as every OPML-capable app can interpret the
hierarchy differently. OPML is just an outline, so a poorly structured
document (that has multiple h1s, or skips from h1-h3, h2-h5, etc.) will
be interpreted differently. However, I do think that Marked should
interpret the first h1 as a main node, especially if there's no title:
metadata. I'll look into this.
-Brett
2 Posted by Otini Kroukamp on 22 Jun, 2017 09:43 PM
Thank you!
It is certainly not a deal-breaker.
I have adopted a sort of iterative writing workflow, cycling between MultiMarkdown and OPML (mind map), to more effectively integrate the brainstorm and the outline. I would just like to predict what I expect to see with each conversion.
Best regards
Otini
From: Brett <[email blocked]>
To: [email blocked]
Sent: Thursday, June 22, 2017 11:06 AM
Subject: opml title node from markdown? [Questions]