Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Html Formatter
This discussion is related to the Html Formatter addon.
Comments
<video type="youtube">osd9f435olim</video>
and you still can use that for normal quality, but if you want to use high quality you just change it to<video type="youtubehq">osd9f435olim</video>
To do this, replace lines 61 to 62 with this:if(HTML_VIDEO_TAG) $Html_VideoLinks = array( 'youtubehq' => '<object width="480" height="360"><param name="movie" value="http://www.youtube.com/v/VIDEO_ID&ap=%2526fmt%3D18"></param>'. '<embed src="http://www.youtube.com/v/VIDEO_ID&ap=%2526fmt%3D18" type="application/x-shockwave-flash" width="480" height="360"></embed>'. '</object>',
I hope that helps people, and hopefully sirnot will update this extension to add that code by default when he gets a chanceI've posted in the markdown formatter thread about getting the markdown plugin to accept HTML (as per the markdown spec.) by making it run the markdown output through this HTML formatter (if it is also installed). To do this though, I have had to alter (slightly) the HTML formatter so that I could use it's parsing abilities, without it converting newlines.
I thought I'd submit my changes here, too. If they were added to the HTML formatter, it would allow the HTML formatter to also provide a general HTML parsing service to other plugins, which might be useful.
--- default.php.orig 2009-03-19 13:02:20.000000000 +0000 +++ default.php 2009-03-19 13:04:46.000000000 +0000 @@ -111,7 +111,7 @@ $this->TagArray = &$GLOBALS['Html_TagArray']; } - function Execute($String) + function Execute($String, $ParseOnly) { $this->TagArray = array('normal' => array(), 'extraclosing' => array()); $String = str_replace(chr(0), ' ', $String); @@ -172,7 +172,7 @@ $sReturn ); - if(HTML_CONVERT_NEWLINES) + if(HTML_CONVERT_NEWLINES && !$ParseOnly) $sReturn = str_replace( array("\r\n", "\r", "\n"), '<br />', @@ -389,7 +389,7 @@ function Parse($String, $Object, $FormatPurpose) { - if($FormatPurpose == FORMAT_STRING_FOR_DISPLAY) $sReturn = $this->Execute($String); + if($FormatPurpose == FORMAT_STRING_FOR_DISPLAY) $sReturn = $this->Execute($String, false); else $sReturn = $String; return $this->ParseChildren($sReturn, $Object, $FormatPurpose);
thanks in advance!
Secondly, I have added a new tag . This tag can be used to put mathematical formulas into a post. It uses the Google Chart API to generate the images.
You can find my modified version at this URL
http://gist.github.com/303578
Enjoy.