Open sascha-wi opened 1 year ago
I've never tried using anything other than composer. You are welcome to try using alternative methods of installing the dependencies needed for this extension, but I can't guarantee they will work.
Hm thats sad to hear, esp. since under requirements on this page its nowhere mentioned that composer is required. Also its mentioned that you could install the parsedown "manually" so I assumed that would be possible.
Also the install instructions here https://www.mediawiki.org/wiki/Extension:WikiMarkdown#Configuration are different from whats shown on this github I am not sure where the discrepancy stems from.
I'm sure that as long as you have parsedown installed and the extension is able to access it, you will be able to use it, but I've not personally tried that as composer is the preferred method.
Still I am not sure the installation instructions on this github are leading anywhere? By following them I would simple install the parsedown package from my repos and add wfLoadExtension( 'WikiMarkdown' );
to LocalSettings.php
Which probably isn't enough to make this extension work. The previously linked wiki page at least mentions cloning this repo...
You need to download the files for this repo and put them into a folder in your extensions folder for your server just like any other extension install. The instructions on the wiki page are just more complete.
So for debian there is only one php-parsedown package, I think extended and extra are part of backports, so we will not use them for now. I get this
content drop down when editing pages but when entering any markdown syntax its not showing up. When using
Are you able to use the wikitext editor instead of the visual editor to add <markdown>
tags? That would help narrow down where your issue might be.
I assume you are referring to the source editor? That is the one I used in the previous comment, where I received the Internal error.
Okay, then can you add $wgShowExceptionDetails = true;
to your LocalSettings.php and see if that provides a better error message to diagnose the issue?
`[0cdca3b43efdd41cbe61ea28] /index.php?title=IT:Abteilungsbesprechung_20230427&action=submit Error from line 330 of /var/www/bla.org/extensions/WikiMarkdown/includes/WikiMarkdown.php: Class 'Parsedown' not found
Backtrace:
I guess the php-parsedown package is not working?
Yes that is indeed the case. I'm not certain what it would take to get MediaWiki to be able to access Parsedown via php-parsedown. Composer works well, but if you don't want to use that then I'm not certain what you need to do.
btw, this is kind of a kludge but does work for me to get things running without composer:
in localsettings.php
require_once("<parsedown path>/Parsedown.php");
kludge
Can you elaborate why you describe this solution as a such? I haven't tried it yet, but really would like to get markdown running for our mediawiki without composer.
See title, I am looking to use markdown on our mediawiki instance. But I don't want to install unnecessary libraries which come with composer. So is it possible to install this extension with the use of php-parsedown package e.g. for debian?