Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthora_magical_me
    • CommentTimeJul 5th 2006 edited
     # 1
    Provides Markdown formatting for comments, by means of a thin wrapper around Michel Fortin's PHP Markdown Extra. Thanks, Michel!

    This extension's version number is the same as PHP Markdown Extra's.
  1.  # 2
    Uploaded version 1.1.2 of Markdown.
  2.  # 3
    Uploaded version 1.1.2 of Markdown.
    •  
      CommentAuthordkodr
    • CommentTimeMar 24th 2008
     # 4
    This extension doesn't allow the usage of inline HTML, while Markdown should. HTML tags are being parsed as plain text. Is there a way to fix this?
    • CommentAuthorRogerH
    • CommentTimeMar 29th 2008
     # 5
    This is excellent but is it possible to restrict which tags can be used? Ideally I'd like to block headers and rules.
    •  
      CommentAuthorWallPhone
    • CommentTimeMar 29th 2008
     # 6
    Yes, HTML is stripped by the extension, for security purposes. I believe the ideal setup would be to chain this formatter with the Kses formatter so that the post passes through them both.
    •  
      CommentAuthordkodr
    • CommentTimeMar 29th 2008
     # 7
    I'd really appreciate it if you could tell me how to allow HTML in this extension.
    •  
      CommentAuthorWallPhone
    • CommentTimeMar 30th 2008
     # 8
    You'd have to replace line 18 ($String = $this->ProtectString($String);) with some other function that strips out potentially harmful HTML.

    I'd recommend copying kses.php inside the markdown folder, then add include('kses.php'); just after the dictionary definition, and change line 18 to be $string = kses($String, array());

    This would also give you some kind of tag policy, where you could put a list of HTML tags and attributes you want to allow in the array if Kses blocks them.
Add your comments
    Username Password
  • Format comments as