@jpl Very nice! Here the output doesn’t go to md files but to the console.
So some more code needed to write to .md
files, right?
I notice you have only internal links in the sample TBX file, which all get converted to [[wikilinks]]. How would one handle a document with a mixture of internal and web links, where one would want [] for internal links and anchor for web links? The only way I could figure out how to address that in the first script in this thread (which addresses a similar problem as your script here but assumes a working copy of the app is available) was to add a @ prefix to internal links. Having looked at the xml, do you see a better way to distinguish between the two kinds of links?
@satikusala I was reminded in this return to R after several years that the Run button in RStudio runs the selected lines only. So you might try making sure you have selected the whole script before hitting Run. I’m guessing you may have missed one or more of those three crucial library() lines at the start. (Thereafter you can just select the lines you want to rerun (as in my screenshot).