Add markdown transformation in HTML output, fix Markdown formatter

This commit is contained in:
William DURAND 2012-07-13 15:01:09 +02:00
parent a0a9170d1c
commit 3ec87522b2
2 changed files with 3 additions and 8 deletions

View File

@ -27,13 +27,8 @@ class MarkdownFormatter extends AbstractFormatter
$markdown .= "\n\n";
if (isset($data['documentation']) && !empty($data['documentation'])) {
$markdown .= "#### Documentation ####\n\n";
foreach (explode("\n", $data['documentation']) as $line) {
$markdown .= " " . $line . "\n";
}
$markdown .= "\n";
$markdown .= $data['documentation'];
$markdown .= "\n\n";
}
if (isset($data['requirements']) && !empty($data['requirements'])) {

View File

@ -25,7 +25,7 @@
<div class="pane content selected">
{% if data.documentation is defined and data.documentation is not empty %}
<h4>Documentation</h4>
<pre>{{ data.documentation }}</pre>
<p>{{ data.documentation|markdown }}</p>
{% endif %}
{% if data.requirements is defined and data.requirements is not empty %}