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) { ...@@ -646,14 +646,18 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) {
} }
} }
else { else {
$output = $readme = '';
'<p>' . if ('md' == $ext) {
t('If you install the !module module, the text below will be filtered by the module, producing rich text.', $readme .=
array('!module' => l(t('Markdown filter'), '<p>' .
'https://www.drupal.org/project/markdown', t('If you install the !module module, the text below will be filtered by the module, producing rich text.',
array('attributes' => array('title' => t('Link to project.')))))) . '</p>' . array('!module' => l(t('Markdown filter'),
'<div class="advanced-help-topic"><pre class="readme">' . check_plain($output) . 'https://www.drupal.org/project/markdown',
'</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; return $output;
} }
......
...@@ -6,6 +6,14 @@ ...@@ -6,6 +6,14 @@
padding: .4em; padding: .4em;
} }
.advanced-help-topic p.bob {
background: #f1f1f1;
border: 1px solid #ccc;
display: block;
margin: 1em;
padding: .4em;
}
.advanced-help-topic pre.readme { .advanced-help-topic pre.readme {
background: white; background: white;
border: none; 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