GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

extension for symbolic links? #36

Open HenrikBechmann opened 8 years ago

HenrikBechmann commented 8 years ago

I've written a markup parser in the past (http://symplewiki.org, based on creole), and found it handy for users to be able to use symbolic links in place of references:

{{Pictures:mypicture.jpg | my awesome picture}} 

in kramed I presume this would be

![my awesome picture](Pictures:mypicture.jpg)

and for a link:

[[Documents:mydoc.xls | my spreadsheet]]

in kramed:

[my spreadsheet](Documents:mydoc.xls)

...whereby there is an internal (database) lookup and expansion of 'Pictures:' -> /uploads/images/ and 'Documents:'-> /uploads/documents/ (or whatever).

Is such a custom extension possible in kramed? it looks like it...