]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/wikilink/discussion.mdwn
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
[ikiwiki.git] / doc / ikiwiki / wikilink / discussion.mdwn
1 # Creating an anchor in Markdown
2
3 Is it a native Markdown "tag" for creating an anchor? Unfortunately,
4 I haven't any information about it at
5 [Markdown syntax](http://daringfireball.net/projects/markdown/syntax) page.
6
7 Of course, I know that I can use HTML tag to do it,
8 for example <a name="foo" />, but I don't want to mix Markdown
9 and HTML code if it's not necessary.
10
11 BTW, ikiwiki doesn't displays the #foo anchor in the example
12 ("To link to an anchor inside a page...") at [[WikiLink]] page...
13
14 --[[Paweł|ptecza]]
15
16 > No such syntax exists in markdown.  ikiwiki could certainly have a
17 > [[preprocessor_directive|preprocessordirective]] for it, though.
18 > --[[JoshTriplett]]
19
20 >> [[tag wishlist]]
21 >> I'd like to implement such a thing.  Joey, what is this supposed to look like?
22 >> `\[[anchor WHATEVER]]`?  --[[tschwinge]]
23
24
25 > The lack of the `#foo` anchor in the anchor example on [[wikilink]]
26 > definitely looks like a bug.  --[[JoshTriplett]]
27
28 >> Fixed that --[[Joey]]
29
30 ---
31
32 Considering a hierarchy like `foo/bar/bar`, I had the need to link from the
33 `foo/bar/bar` page to the `foo/bar` one.  It would have been convenient to
34 simply write [[wikilink]]s like `\[[../bar]]` (or even just `\[[..]]`?), but
35 this doesn't work, so I had to resort to using `\[[foo/bar]]` instead.
36 --[[tschwinge]]