kzykhys / Ciconia

A New Markdown parser for PHP5.4
http://ciconia.kzykhys.com/
MIT License
355 stars 31 forks source link

Footnotes #11

Closed inoryy closed 10 years ago

inoryy commented 10 years ago

Do you have plans to support this syntax?

I get 10 times more traffic from Google than from Yahoo or MSN.

kzykhys commented 10 years ago

Sorry, I have currently no plan to support footnotes. Footnotes markup will depends on css IMO

evert commented 10 years ago

Hmm.. I would say this is quite an important feature though. I do all my links with footnotes, because it looks better in the markdown source.

Note that that syntax will still result in a 'normal' link. On github. @Inori 's example results in this on github:

I get 10 times more traffic from Google than from Yahoo or MSN.

I hope you could reconsider :)

kzykhys commented 10 years ago

http://michelf.ca/projects/php-markdown/extra/#footnotes ?

Reference-style link is already supported.

kzykhys$ echo '
>     I get 10 times more traffic from [Google] [1] than from
>     [Yahoo] [2] or [MSN] [3].
> 
>     [1]: http://google.com/ "Google"
>     [2]: http://search.yahoo.com/ "Yahoo Search"
>     [3]: http://search.msn.com/ "MSN Search"
> ' | php bin/ciconia
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
    <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
kzykhys commented 10 years ago

All official features are supported. http://daringfireball.net/projects/markdown/syntax

inoryy commented 10 years ago

Cool, so that means it's already implemented, just named differently. Potato tomato :)