-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible incompatibility with the Markdown plugin #21
Comments
I'm afraid I'm not familiar enough with the dokuwiki internals either, and I'm not sure what's going on there. Your understanding matches mine, but clearly we're missing something. You could try to change the return value of |
Same happened for me. In my case, changing return value of First, this problem happens only if I use two or more underscores in math in a bulleted line. I guess this problem is caused by both italic style (surrounded by underscores) and unordered list (lines starting with a For example, Another speculation of mine is that the meaning of So, this is probably what's happening:
The return value of Considering the true purpose, I think |
The |
Thanks for digging into this and figuring it out. From the syntax plugin documentation and its base code, it looks to me like Protected blocks (like I see no negative side-effects of your fix myself, but I want to find the most appropriate fix for this. I think that fix is to add 'protected' to the allowed types in markdowku's |
Yes, adding function getAllowedTypes() {
return array('formatting', 'substition', 'paragraphs', 'baseonly', 'container', 'protected');
} I also checked the source of standard DokuWiki syntax for unordered lists. Like you said, the standard syntax accepts dokuwiki/inc/parser/parser.php (462): class Doku_Parser_Mode_listblock extends Doku_Parser_Mode {
function Doku_Parser_Mode_listblock() {
global $PARSER_MODES;
$this->allowedModes = array_merge (
$PARSER_MODES['formatting'],
$PARSER_MODES['substition'],
$PARSER_MODES['disabled'],
$PARSER_MODES['protected'] #XXX new
);
// $this->allowedModes[] = 'footnote';
} I'm still not sure which plugin should be fixed. I agree that MathJax markup should not include any other DokuWiki syntax, but it's determined solely by MathJax plugin's That said, I'm inclined to fixing markdowku side, because it's at least not consistent with standard syntax. |
Hi,
I use this markdown plugin on my DW instance and wanted to try your MathJax plugin.
There seem to be a problem with underscores. I do not claim that this is a bug in your plugin, but ask for some help!
I already tried to tweak the
getSort
value with no luck. I'm not strong enough in DW internals to fully understand the problem. The markdown plugin has 20+ files with differentgetSort
values, ranging from 8 to 219.If I understand correctly,
getType
returningprotected
should prevent this very problem.You can try yourself to tweak a page where both are installed:
http://galerie.microalg.info/profgra:tests:mathjax
The text was updated successfully, but these errors were encountered: