jgm / gitit

A wiki using HAppS, pandoc, and git
GNU General Public License v2.0
2.15k stars 225 forks source link

Links: "Display" name vs "path" name #601

Closed alok closed 7 years ago

alok commented 7 years ago

In Wikipedia's markup language, you create free links by putting double square brackets around text designating the title of the page you want to link to. Thus, [[Texas]] will be rendered as Texas. Optionally, you can use a vertical bar (|) to customize the link title. For example, typing [[Texas|Lone Star State]] will produce Lone Star State, a link that is displayed as "Lone Star State" but in fact links to Texas.

I was wondering if gitit has a similar feature, and if not, if such a thing could be added, (perhaps as a plugin?). Sometimes it's awkward writing to write the literal link name for some wiki pages.

jgm commented 7 years ago

In gitit this is done just slightly differently:

[[Texas]] --> [Texas]()
[[Texas|Lone Star State]] -> [Lone Star State](Texas)

+++ Alok Singh [Mar 27 17 23:27 ]:

In Wikipedia's markup language, you create free links by putting
double square brackets around text designating the title of the page
you want to link to. Thus, [[Texas]] will be rendered as Texas.
Optionally, you can use a vertical bar (|) to customize the link
title. For example, typing [[Texas|Lone Star State]] will produce
Lone Star State, a link that is displayed as "Lone Star State" but
in fact links to Texas.

I was wondering if gitit has a similar feature, and if not, if such a thing could be added, (perhaps as a plugin?). Sometimes it's awkward writing to write the literal link name for some wiki pages.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, [1]view it on GitHub, or [2]mute the thread.

References

  1. https://github.com/jgm/gitit/issues/601
  2. https://github.com/notifications/unsubscribe-auth/AAAL5OUmxqMwaVBM-gdqDLbXtObz94vmks5rqKhQgaJpZM4MrMNB