Action

Document Outline to MindNode (Markdown)

Posted by RosemaryOrchard, Last update almost 5 years ago

Parse the headers from a Markdown document into a tab indented outline to share to MindNode

Steps

  • script

    let headers = draft.content.match( /^#+?[ \t]+\S.*$/mgi );
    let mindMap = '';
    headers.forEach(function(header){
    	mindMap += header.replace(/#/, '').trim().replace("# ", "#").replace(/#/g, "\t") + "\n";
    });
    
    draft.setTemplateTag('mindmap', mindMap.trim());
  • callbackUrl

    template
    mindnode://import?format=txt&name=[[title]]&content=[[mindmap]]
    waitForResponse
    false
    encodeTags
    true

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.