My approach for formatting is to use the HTML export rather than the text. But, maybe it’s possible for RTF formatting to move over.
In fact, looking at your code, what if you try
create record with {name:theNames's item i, content:theTexts's item i, URL:noteURLs's item i, tags:theTags's item i, type:rtf}
Note type:rtf
vs type:text
. I’m not positive (haven’t tried it), but I think your code creates a plain text file rather than an RTF file. So if that’s the case, try RTF and see if the formatting comes over.
re: links… the “best” approach I’ve found is to do string substitution of the links (also in that post I shared above). It’s kinda painful. Maybe there’s a better way now with the more integrated scripting. And hopefully the brilliant minds at Eastgate and DEVON recognize the great potential in more closely integrating the tools and come up with a smooth export & linking strategy.