Commit 4b94735a authored by gisle's avatar gisle
Browse files

Fixed it so that markdown is only suggested in the case of README.md.

parent 604e0d76
......@@ -646,14 +646,18 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) {
}
}
else {
$output =
$readme = '';
if ('md' == $ext) {
$readme .=
'<p>' .
t('If you install the !module module, the text below will be filtered by the module, producing rich text.',
array('!module' => l(t('Markdown filter'),
'https://www.drupal.org/project/markdown',
array('attributes' => array('title' => t('Link to project.')))))) . '</p>' .
'<div class="advanced-help-topic"><pre class="readme">' . check_plain($output) .
'</pre></div>';
array('attributes' => array('title' => t('Link to project.')))))) . '</p>';
}
$readme .=
'<div class="advanced-help-topic"><pre class="readme">' . check_plain($output) . '</pre></div>';
$output = $readme;
}
return $output;
}
......
......@@ -6,6 +6,14 @@
padding: .4em;
}
.advanced-help-topic p.bob {
background: #f1f1f1;
border: 1px solid #ccc;
display: block;
margin: 1em;
padding: .4em;
}
.advanced-help-topic pre.readme {
background: white;
border: none;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment