Skip to content

Synology Note Station Links to Other Note Pages

kevindurston21 edited this page Aug 1, 2021 · 4 revisions

The way the Note-Station data is exported has no usable links between pages.

YANOM will attempt to generate the required link using the page tile, and the page name in the link, but there are limitations. Edits may have been made in note-station that prevent a link being found.

This page explains those limitations and how, if it is important links are maintained, you can optimise the chance of links being recreated.

Any notes in the recycle bin are excluded from being searched as potential link targets.

Note If you have links between pages in different notebooks, for the links to be created you must export all the notebooks in a single export file.

Results you can expect

Good links

If a link is between pages within a notebook, or to a page in another notebook, is created, AND the text displaying the link displays the name of the page that it is linked to a link will be created.

For Example

  • "My Page" has a link to "An Interesting Page" and that is the title of the linked to page
  • Following conversion the text "An Interesting Page" will be linked to An-Interesting-Page.md

A link that was manually edited in note-station after it was created

If the text displaying a link between pages has been edited so that it is no longer the page name or, the page has been renamed since the link was created, the link will not be maintained after conversion unless there is an edited link on that page or on another page in the nsx file.

For Example

  • "My Page" has a link to "My Other Page", but the text displaying the link says "This is an interesting page"
  • The converted page will NOT have a working link
  • These non-working links will be similar in format to the following code example in Markdown
[Page linked to from test book](notestation://remote/self/1026_7AKT6PDJ3P71D53UDO4VUI46M8)

and like this in an HTML file

<a href="notestation://remote/self/1026_1LRHUFL5U57TP9HI6RDC41U7LG">renamed link to test page 3</a>

Solutions

Prior to conversion

  1. If the text displaying a link has been edited, so it is no longer exactly the title of the note it is linking to:-

    1. Edit a single occurrence of that link on any page in any notebook that will be exported i the nsx file.
    2. Edit the link so that the displayed text matches the title of the page it is linking to.
    3. YANOM will make use of this good link to correct any other renamed links to that page in any note page in any notebook within the same exported .nsx file.
  2. If you have renamed a page that has links pointing to it:-

    1. Edit a single link to that page on any page in any notebook so that the displayed text matches the note page name correctly.
    2. All other links to that page on any page in any notebook within the same exported .nsx file will be corrected by YANOM.

If you edit and correct the link on the page these are the results you get

Post conversion

If, after conversion you know which page the non-working link refers to you can edit the link or do a find and replace to replace the link with the path to the correct file.

Multiple notes with the same name

If there is more than one note page with a name matching the displayed link, a link to each of those duplicate page names will be created as it is not possible to tell which page was actually linked.

For Example

  • "My Page" is linked to "Interesting page"
  • There are two pages named "Interesting Page"
  • After conversion the link to "Interesting Page" will be repeated twice, once to each page

Solutions

Pre conversion

  1. If you have duplicate note names in different books AND all your links are only to pages within the same notebook:-
    1. Export each notebook to a separate export file.
    2. YANOM can convert all the export files at once but will only look for matching page titles within each export file.
  2. If you have multiple pages with the same title/name in a singe notebook
    1. You can rename pages, so they have different names, but then edit at least one link as discussed above.
    2. OR accept that for each link, that links to a duplicated page name, will have a link created for each of those pages, and you will need to manually edit your converted files to delete the links that are not applicable.

Results where a link has been correctly edited

If you edit a link on the page so that the text displaying the link is the linked to page title, all the links to that page will be linked to that page on any page, in any notebook that are in the same .nsx export file. THe link text that had been edited will be replaced by page title of the linked to page.

For example

  • "My page" has two links
    • a link to "My Second Page"
    • and an edited link to my second page now titled "This is an interesting page"
  • Following conversion "My Page" will have two links
    • both titled and linked to "My Second Page"