darioteixeira / lambdoc

Lambdoc is a library providing support for semantically complex documents in Ocsigen web applications
GNU General Public License v2.0
17 stars 1 forks source link

Support sigiled links #28

Open darioteixeira opened 9 years ago

darioteixeira commented 9 years ago

It would be useful if core Lambdoc and all its readers would support special links formed by a sigil such as @ or # preceding a word. Consider for instance Github, which transforms a user name sigiled by @ into a link into the user's page.

A sigiled identifier would be represented as a new Sigiled variant in Lambdoc_core.Inline, and the mapping between sigil and actual link would be performed by the extension mechanism. Moreover, to avoid forcing users to escape every control character, only rarely used characters such as @ and # may be used as sigils. In fact, I would suggest that only those two characters are actually used.