Jump to content

Recommended Posts

I am building a small wiki module for a "Enterprise Management System" and am thinking about current Wiki formatting syntax.  Lets take one of the more known Wiki system, MediaWiki.  I never understood why Wiki systems like MediaWiki created there own awkward syntax instead of uses HTML which is already well defined and just add to it for wiki specific thing like internal wiki linking and what not.  The only security issue it that you would not want them to be able to insert javascript which can easily be stripped out.  Using HTML also allow the ability for better formatting as you can then also use css too.

 

Are there any other security risks or general reason why you would not what to use html for a Wiki?

Link to comment
https://forums.phpfreaks.com/topic/131909-wikiforum-formatting-syntax/
Share on other sites

There are other potentially dangerous tags besides < script>, but yeah, all of them can be stripped.

The actual reason I believe is that Wiki syntax is actually easier to learn for someone not HTML savvy. Besides at least in MediaWiki it still allows you to use CSS in many places, and a lot of HTML is available as well.

And MediaWiki isn't all "new" syntax.  Take the Math syntax for example (go to any math page and go to edit it and you'll see what I mean).  It's actually the math syntax from LaTeX.  I bet you that other things on the site use LaTeX-like syntax too (I haven't really looked TOO much).

There's huge psychological factor to it. If you tell someone, who can barely use word processor, that he has to learn HTML to edit wiki, he will do neither. If you tell him, that he needs to put [[]] on both side of a word, to get link to article named after this word, and put '''around''' the word to make it bold, they can get over it.

 

Also note, that text with wiki syntax is easier to edit, than text full of html tags that obscure content.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.