I agree, but as I wrote in my fist post, the result is different...

Le vendredi 24 juin 2022 à 10:50:54 UTC+2, Bastien Dumont a écrit :
Sorry for the typo... But, as far as I can see, the syntax is the same for headers:

```
## Header {#myhead}

Reference to [myhead].

Reference to [my header](#myhead).
```

Output:

```
<h2 id="myhead">Header</h2>
<p>Reference to [myhead].</p>
<p>Reference to <a href="#myhead">my header</a>.</p>
```

Le Friday 24 June 2022 à 01:41:33AM, Louis a écrit :
> I don't want an hyperlink but an internal link (<url>#mypic in html).
>
> What I can eventually do is [my picture](#mypic)
>
> ...while for other labels like headers, it only requires [mypic]
>
>
> Le vendredi 24 juin 2022 à 10:33:38 UTC+2, Bastien Dumont a écrit :
>
> If your only goal is to create a hyperlink to your picture, you can refer
> to it with, e.g., [my picture](mypic).
>
> Le Friday 24 June 2022 à 01:27:28AM, Louis a écrit :
> > Hello,
> >
> > I found some very old discussion on the subject, but I think it worth it
> to
> > start a new one.
> >
> > If I define a figure with an attribute:
> > ![My pic](mypic.png){#mypic}
> >
> > I have indeed a label created. I can see it in latex or in html:
> > latex: \caption{My pic}\label{mypic}
> > html: <img src="mypic.png" id="mypic"
> >
> > I think I should be able to refer to it with the syntax [mypic].
> >
> > Unfortunately, the result differs:
> > latex: {[}mypic{]}
> > html: <p>Here is [s4overview]</p>
> >
> > What do you think ?
> >
> > Louis
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> > To view this discussion on the web visit [2][1]https://groups.google.com/
> d/msgid/
> > pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%[2]
> 40googlegroups.com.
> >
> > References:
> >
> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [2] [3]https://groups.google.com/d/msgid/pandoc-discuss/
> 29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&
> utm_source=footer
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to [4]pandoc-discus...@googlegroups.com.
> To view this discussion on the web visit [5]https://groups.google.com/d/msgid/
> pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com.
>
> References:
>
> [1] https://groups.google.com/d/msgid/
> [2] http://40googlegroups.com/
> [3] https://groups.google.com/d/msgid/pandoc-discuss/29a20ffb-c447-4645-8993-3e64938ae105n%40googlegroups.com?utm_medium=email&utm_source=footer
> [4] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [5] https://groups.google.com/d/msgid/pandoc-discuss/ecffcdcd-1788-4565-881b-db436f030e8an%40googlegroups.com?utm_medium=email&utm_source=footer

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f8ad317a-57d3-490e-b42a-d74769d242f4n%40googlegroups.com.