tstaerk / mediasyntax

Mediasyntax is a plugin for Dokuwiki that enables Mediawiki syntax.
http://www.staerk.de/thorsten/Mediasyntax
GNU General Public License v2.0
10 stars 6 forks source link

Doesn't seem to be a way to link a pdf #17

Closed kevinclevenger closed 9 years ago

kevinclevenger commented 9 years ago

[[Image:kevin:image.png]] works correctly but I can't get a PDF upload link to work at all. If using [[Image:kevin:file.pdf]] I just get a generic image icon. Also tried File: and Media: without success.

Using current git source

tstaerk commented 9 years ago

thanks for testing the current git source! Sounds plausible and fixable.

tstaerk commented 9 years ago

Just looked how mediawiki handles pdf files. [[Image:2014.pdf]] results in the html code File:2014.pdf... of course the /thorsten/ depends on your environment ;)

tstaerk commented 9 years ago

Ok, markdown messed up what I wanted to write. [[Image:2014.pdf]] results in the html code

<a href="/thorsten/File:2014.pdf" title="File:2014.pdf">File:2014.pdf</a>
tstaerk commented 9 years ago

Fixed with https://github.com/tstaerk/mediasyntax/commit/922dd96a45cacb85a14a2692e21ac87b943948db