# opml title node from markdown?

#### otini

21 Jun, 2017 02:41 PM

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.

1. Support Staff 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

## Subsection 1.1

then a round trip from Marked->OPML->MindNode->Markdown (or
Marked->OPML->Marked->Markdown) will result in:

# Main Node Title

- Subsection 1.1

- 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:

-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]

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 21 Feb, 2020 11:32 PM Option to use MathJax 3? 20 Feb, 2020 03:12 PM Regular crashes 13 Feb, 2020 09:22 PM Markdown Formatting 11 Feb, 2020 11:53 AM Custom themes not working 10 Feb, 2020 06:48 PM KaTex Preview Update

## Recent Articles

 Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words How do I retrieve a lost license (direct version)