jgm / gitit

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

management of the dashes in the WikiLinks #272

Open tantignac opened 13 years ago

tantignac commented 13 years ago

Hello,

The syntax [To-Three]() gives a page named To-Three whereas [2-3]() gives 2--3 (note the two dashes).

Is it an expected behavior of gitit?

jgm commented 13 years ago

Pandoc knows to use an En dash (latex --) between digits. It should appear in HTML as an En dash, not two hyphens. In LaTeX export, it would be two hyphens.

+++ Thibaud Antignac [Sep 09 11 05:29 ]:

Hello,

The syntax [To-Three]() gives a page named To-Three whereas [2-3]() gives 2--3 (note the two dashes).

Is it an expected behavior of gitit?

Reply to this email directly or view it on GitHub: https://github.com/jgm/gitit/issues/272

tantignac commented 13 years ago

Formatting is ok in LaTeX and in HTML as well.

Apparently, Haskell names the files according to the LaTeX convention (2--3.page instead of 2-3.page). If it is the expected behavior, it is ok!