Make internal links exportable

It would be really nice to be able to use Dynalist as a light-weight editor for structured knowledge bases. The internal linking / backlinking functionality makes it possible to create relationships between entities.

Unfortunately, the OPML export currently exports internal links like this:

<outline text="Belgium">
      <outline text="Language: [French](https://dynalist.io/d/5VD5ZtXgxOTIJjdUBZHxyyuU#z=yEab963qcCcUCuLaHjWxchon),   [Dutch](https://dynalist.io/d/5VD5ZtXgxOTIJjdUBZHxyyuU#z=8hSchU1OMDq_EgTgIReqSu1V)"/>

I.e., links are URLs containing an ID of the referenced node. Unfortunately, the nodes themselves do not have IDs in the export. Therefore, the internal link information is lost.

This could be easily remedied by (optionally) also exporting the URL containing the ID as attributes of the outline XML tags, e.g.

<outline text="French" htmlUrl="https://dynalist.io/d/5VD5ZtXgxOTIJjdUBZHxyyuU#z=yEab963qcCcUCuLaHjWxchon" />

This way, the information captured by internal links can be recovered from the OPML export.

1 Like

I just realized that the IDs can be exported by downloading the document as JSON via the API. I think we can work with that!

This! Please fix this. :pray: