<$include> Link Confusion

I have a document with
Section 1
Title A
Title B
Section 2
Title A
Title B
Section 3
Page3

In Section 3, Page3 has <$include:Title A>, where Title A is drag-dropped from Section 2.

If I click the Title A link, Scrivener correctly brings up the page of Title A of Section 2. However, when I compile the document to MMD, the page is filled with content of Title A of Section 1.

Is this bug or am I doing something wrong?

You’ll need unique names, if the link depends on names.

The link was drag-dropped, and during compile <$hn> is added to title.

It’s surprising that <$include:> depends on only the title text! I think it’s a matter of when <$include> is eval’ed. You would expect all the included text get pulled in before compilation.

Anyway, I cannot make the title text unique. Is there any work around?

Use <$include> without the title. Apparently, the name takes precedence if you use one, but you don’t have to.

1 Like

3 posts were split to a new topic: Full placeholder evaluation not performed on non-draft content included into draft