function _filter_markdown_tips in Markdown 7.2
Same name and namespace in other branches
- 7 markdown.module \_filter_markdown_tips()
Returns the markdown input filter tips. @TODO: make it easier for translators.
1 string reference to '_filter_markdown_tips'
- markdown_filter_info in ./
markdown.module - Implements hook_filter_info().
File
- ./
markdown.module, line 63 - Provides a Markdown input filter.
Code
function _filter_markdown_tips($format, $long = FALSE) {
if ($long) {
return t('Quick Tips:<ul>
<li>Two or more spaces at a line\'s end = Line break</li>
<li>Double returns = Paragraph</li>
<li>*Single asterisks* or _single underscores_ = <em>Emphasis</em></li>
<li>**Double** or __double__ = <strong>Strong</strong></li>
<li>This is [a link](http://the.link.example.com "The optional title text")</li>
</ul>For complete details on the Markdown syntax, see the <a href="http://daringfireball.net/projects/markdown/syntax">Markdown documentation</a> and <a href="http://michelf.com/projects/php-markdown/extra/">Markdown Extra documentation</a> for tables, footnotes, and more.');
}
else {
return t('You can use <a href="@filter_tips">Markdown syntax</a> to format and style the text. Also see <a href="@markdown_extra">Markdown Extra</a> for tables, footnotes, and more.', array(
'@filter_tips' => url('filter/tips'),
'@markdown_extra' => 'http://michelf.com/projects/php-markdown/extra/',
));
}
}