Repeat question - how to refer to nodes from other nodes?

40 views
Skip to first unread message

Terrence-Monroe: Brannon

unread,
Jan 5, 2022, 2:56:32 AM1/5/22
to leo-editor
hln670a22T.png

In this picture, i am currently in the "More about Leo" node. Within the body of this node, how can I write some markdown that refers to  the "Sample content" node. E.g;

@language md

To learn about content, visit @noderef(Sample Content).

Related threads discovered do not answer my question:

tbp1...@gmail.com

unread,
Jan 5, 2022, 7:29:48 AM1/5/22
to leo-editor
I'm not sure how it would work in MD and LeoVue, but with ReStructuredText, you would need a parent node; all your current nodes would become children of this new parent;  and you would render the entire tree of the parent to get your document.  With this design, you could have cross-node links that work.

In your example, I would probably make the LeoVue node the parent (I'm not sure how the @cover node would fit in).

tbp1...@gmail.com

unread,
Jan 5, 2022, 9:11:02 AM1/5/22
to leo-editor
The way I have found to create these intradocument links with MD is to insert an HTML anchor element to mark the link target:

# Introduction
.......
For more, see [Leovue] (#leovue).
.......
# <a id='leovue'></a>Leovue
.......

As I wrote above, both nodes would need to be under the same parent node so they would all be in the same rendered document.
Reply all
Reply to author
Forward
0 new messages