Open Subilan opened 2 years ago
Can you confirm that using the Math extension normally (not within markdown) works properly?
Additionally, I've tested this extension with Math 3.0.0 (4e8cc52) on MediaWiki 1.35.8 (latest LTS release) and there is no issue. It looks like the Math extension has had some refactoring, which would make certain versions incompatible (much like what you are seeing). Please try using the 4e8cc52 version of Math and see if that works for you. Once the next LTS release of MediaWiki is stable (1.39), I'll look into making changes to support whatever version of Math comes with that version.
I'll look into making changes to support whatever version of Math comes with that version.
OK, I get it.
Can you confirm that using the Math extension normally (not within markdown) works properly?
It works normally without markdown. I'll disable math section in markdown for a simple fix as this is actually not a big issue for me though XD
Thanks for your help!
You might also be able to apply a simple hack to your version of WikiMarkdown by changing lines 130, 138, 146, and 155 to have MediaWiki\Extension\Math\HookHandlers
instead of MediaWiki\Extension\Math\Hooks
. I won't make this change here yet since that will break 1.35 compatibility and I mainly support MediaWiki LTS releases, but I'll likely need to make that change when MediaWiki 1.39 is released.
Pretty cool solution, I'll try it later. Thanks!
to fix https://github.com/kuenzign/WikiMarkdown/issues/6 in 1.41 construct function changes to
public function __construct(
--
RendererFactory $rendererFactory,
UserOptionsLookup $userOptionsLookup,
HookContainer $hookContainer
) {
$this->rendererFactory = $rendererFactory;
$this->userOptionsLookup = $userOptionsLookup;
$this->hookRunner = new HookRunner( $hookContainer );
}
so need some fix to 3 arg in
$hookHandler = new \MediaWiki\Extension\Math\HookHandlers\ParserHooksHandler(
MediaWiki\MediaWikiServices::getInstance()->getService( 'Math.RendererFactory' ),
MediaWiki\MediaWikiServices::getInstance()->getService( 'UserOptionsLookup' )
);
With Math enabled, if I save the page with
$$
section in<markdown>
, the page will be like this:Is it caused by some version mismatch? I'm currently using