[Mediawiki-l] Markdown

Jim Hu jimhu at tamu.edu
Wed May 30 00:28:33 UTC 2007


On May 29, 2007, at 4:19 PM, Jim Wilson wrote:

> Hi Ian,
>
> To expand on my comment that ExtendedSyntaxParser doesn't always  
> play well
> with other extensions, I added a section to the MarkdownSyntax talk  
> page:
>
> http://www.mediawiki.org/wiki/ 
> Extension_talk:MarkdownSyntax#Incompatibilities
>
> Basicall (in summary) ExtendedSyntaxParser will strip out HTML  
> comments <!--
> like this --> from the rendered wiki page.  HTML comments are already
> stripped out of wikitext when rendering a page, so for a vanilla  
> install
> this poses no problem.

If I'm understanding this correctly, it should not be a problem with  
extensions like my TableEdit, which use HTML comments to mark  
positions in the wikitext.  The stripping should happen after  
TableEdit, which hooks at ArticleSave, is done.  Is that correc?

Jim

>
> However, if an extension adds HTML comments to an article's  
> rendered body,
> they'll be stripped and this can interfere with functionality.  For  
> example,
> this would break WikiArticleFeeds (another extension of mine).
>
> I've updated the instructions for the UsenetSyntax extension to  
> include
> downloading and installing ExtendedSyntaxParser, which you can get  
> here:
>
> http://jimbojw.com/wiki/index.php?title=ExtendedSyntaxParser
>
> I haven't documented this extension on MediaWiki.org (or my own  
> site) due to
> the HTML comment parsing problem I indicated above.
>
> As far as I can tell, there's no good reason why ESP and TabbedData
> couldn't  live in perfect harmony.  I have no evidence to support  
> Simon's
> assertion that they don't.
>
> -- Jim R. Wilson (jimbojw)
>
> On 5/29/07, Ian Smith <johantheghost at yahoo.com> wrote:
>>
>> Hi Jim,
>>
>> On 5/27/07 12:42 PM, "Jim Wilson" <wilson.jim.r at gmail.com> wrote:
>>>
>>> Without going into too much detail, the current implementation of
>>> ExtendedSyntaxParser, while operating fine by itself, is not  
>>> amicable
>>> to running along side certain other kinds of extensions.  It's
>>> something that I've wanted to revisit, but haven't had time to do so
>> just
>> yet.
>>
>> Since I wrote TabbedData, I'm wondering what the incompatibility  
>> is?  Is
>> there
>> something I can change in TabbedData to make this work?
>>
>> BTW, the UsenetSyntax page makes no mention of requiring
>> ExtendedSyntaxParser,
>> and I can't find it on mw.org... where do I get it?
>>
>> Ian
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054




More information about the MediaWiki-l mailing list