For some reasons, the link type becomes "custom-id". See the attached files - links.org and links.el.
links.el
Description: application/emacs-lisp
* <<aaaa>> BC Crandall :PROPERTIES: :CUSTOM_ID: bbbb :END: * Link1 #+target: cccc [[#aaaa][Some description]] * Link2 [[#bbbb][Some description]] * Link3 [[#cccc][Some description]]
William Crandall <bc3141...@gmail.com> writes: > Hello Nicolas, > > Thanks for clarifying link syntax. > I think I'm more than half way there! > > I can now create targets/destinations: > > This: > ** <<crandall>>BC Crandall > > becomes: > <h3 id="sec-1-1"><a id="crandall" name="crandall"/>BC Crandall</ > h3> > > As expected. > > > But creating a link TO that "id" target eludes me. > > This: > [[#crandall][BC Crandall]] > > becomes: > <i>BC Crandall</i> > > Was expecting: > <a href="#crandall">BC Crandall</a> > > > I was expecting that link (not italicized) because > of the <a id="crandall"/> in the <h3>, in that file. > > Sorry if I'm being obtuse here! > > Thanks again for your help, > > -BC > > > Hello, > > William Crandall <address@hidden> writes: > > > 2a. Internal HTML links (#) > > > > > > Neither links nor destinations make it into the html. > > > > This: > > > > "an internal section link [[#directors][Directors]]." > > > > becomes: > > > > "an internal section link: <i>Directors</i>. > > > > Was expecting (without italics): > > > > ""an internal section link: <a href="#directors">Directors</a>" > > I think your mixing up syntax here: "#" stands for custom-id links. > > In other words, [[#directors][Directors]] is a link pointing to an > headline whose CUSTOM-ID property is "directors". If there's no such > headline, it will return Directors italicized. > > If you're targeting an headline, provide it an appropriate CUSTOM-ID. > Otherwise, just use a target. > > > > 2b. This target: > > > > # <<directors>> > > * A First Section > > > > becomes: > > > > <div id="outline-container-1" class="outline-2"> > > <h2 id="sec-1">A First Section</h2> > > <div class="outline-text-2" id="text-1"> > > > > Was expecting: > > > > <div id="outline-container-1" class="outline-2"> > > <h2 id="sec-1"><a name="directors" id="directors"></a>A First > > Section</h2> > > <div class="outline-text-2" id="text-1"> > > "# <<target>>" syntax has been dropped since every target is now > "invisible". > > Use : > > * <<directors>> A First Section > > instead. > > > Regards, > > -- > Nicolas Goaziou >