Hello,

William Crandall <bc3141...@gmail.com> writes:

> 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>

Again, "#crandall" syntax should be used to target an headline with
"crandall" as value for its custom-id property. See section 4.2 in the
manual.

--8<---------------cut here---------------start------------->8---
* BC Crandall
  :PROPERTIES:
  :CUSTOM_ID: crandall
  :END:

  [[#crandall][Description]]
--8<---------------cut here---------------end--------------->8---


If you are linking to a target, simply call its name.

--8<---------------cut here---------------start------------->8---
* <<crandall>>BC Crandall

  A [[crandall][link]] to headline [[crandall]]
--8<---------------cut here---------------end--------------->8---

Notice the difference between the link with or without a description.


Regards,

-- 
Nicolas Goaziou

Reply via email to