Permalink
Browse files

Changed log script to get html body instead of translating markdown.

  • Loading branch information...
1 parent 7cc1c7f commit 5a60f0a7e0daa144fe3f0aa565f1c42bba0deac9 @eddieajau eddieajau committed Mar 27, 2012
Showing with 5 additions and 2,983 deletions.
  1. +5 −8 build/changelog.php
  2. +0 −46 build/includes/LICENSE
  3. +0 −2,929 build/includes/markdown.php
View
@@ -26,9 +26,6 @@
jimport('joomla.application.cli');
-// Register the markdown parser class so it's loaded when needed.
-JLoader::register('ElephantMarkdown', __DIR__ . '/includes/markdown.php');
-
/**
* Joomla Platform Changelog builder.
*
@@ -86,7 +83,9 @@ public function __construct(JInputCli $input = null, JRegistry $config = null, J
{
parent::__construct($input, $config, $dispatcher);
- $this->api = new JGithub;
+ $options = new JRegistry;
+ $options->set('headers.Accept', 'application/vnd.github.html+json');
+ $this->api = new JGithub($options);
}
/**
@@ -209,11 +208,9 @@ public function execute()
$html .= '</a>] <strong>' . $issue->title . '</strong>';
$html .= ' (<a href="https://github.com/' . $issue->user->login . '">' . $issue->user->login . '</a>)';
- if (trim($issue->body))
+ if (trim($data->body_html))
{
- // Parse the markdown formatted description of the pull.
- // Note, this doesn't account for all the Github flavoured markdown, but it's close.
- $html .= ElephantMarkdown::parse($issue->body);
+ $html .= $data->body_html;
}
$this->setBuffer("$version.log", $html);
View
@@ -1,46 +0,0 @@
-ElephantMarkdown
-
-Copyright (c) 2011 Alexandre Gomes Gaigalas
-<http://gaigalas.net>
-All rights reserved.
-
-Based on php-markdown
-Copyright (c) 2004-2005 Michel Fortin
-<http://www.michelf.com/>
-All rights reserved.
-
-Additional features and fixes by Henrik Paul
-<http://github.com/wolfie/php-markdown/tree/extra>
-
-Based on Markdown
-Copyright (c) 2003-2005 John Gruber
-<http://daringfireball.net/>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-* Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the
- distribution.
-
-* Neither the name "Markdown" nor the names of its contributors may
- be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-This software is provided by the copyright holders and contributors "as
-is" and any express or implied warranties, including, but not limited
-to, the implied warranties of merchantability and fitness for a
-particular purpose are disclaimed. In no event shall the copyright owner
-or contributors be liable for any direct, indirect, incidental, special,
-exemplary, or consequential damages (including, but not limited to,
-procurement of substitute goods or services; loss of use, data, or
-profits; or business interruption) however caused and on any theory of
-liability, whether in contract, strict liability, or tort (including
-negligence or otherwise) arising in any way out of the use of this
-software, even if advised of the possibility of such damage.
Oops, something went wrong.

0 comments on commit 5a60f0a

Please sign in to comment.