I would like to write an export template in which:
- all links of a note are included in the exported txt file
- these links are all live href links that can be clicked on, leading the file to which they point to open
So far, I have been able to figure out the following:
First: I have placed the following into a rule for the note being exported:
$LinksTo=links.outbound."cross reference|define|agree|disagree|*untitled".$Name; $LinksFrom=links.inbound."cross reference|define|agree|disagree|*untitled".$Name;
Second: I have made an export template that includes the following code:
# ^value($Name)^ **Links To:** ^value($LinksTo)^^endif ^if($LinksFrom) **Links From:** ^value($LinksFrom)^ ^endif ^text^
So far so good: I get a note in which the $Name of the notes linked to this note are included in the exported text.
The step I cannot figure out, if indeed it is possible, is how to get those links to be live. I assume it should be possible, because ZipLinks in a note’s $Text, for example, export correctly in the exported txt file:
# cow **Links To:** farms **Links From:** mammals definition: a fully grown female animal of a domesticated breed of ox, kept to produce milk or beef: a dairy cow. Cf. Creatures which have domesticated us: <a href="../Domesticating/cat.md">cat</a>
Can anyone point me in the right direction? Am I trying to do the impossible?