Merge pull request #269 from duckduckgo/jag/latex/more-at

Latex: Add a "More at ..." link at the bottom.
master
Jag Talon 2013-12-17 07:06:16 -08:00
commit 42084ca6f1
1 changed files with 6 additions and 2 deletions

View File

@ -68,10 +68,14 @@ my %texCommands = (
"line" => ['horizontal line', '\hrulefill', '\hrulefill'],
);
sub build_html{
sub more_at {
return '<br><a href="http://www.ctan.org/pkg/latexcheat">More at CTAN</a>';
}
sub build_html {
# builds a string to display using the given $command
# and $usage
return "<i>Command:</i> <pre style='display: inline; padding: 1px;'>$_[0]</pre> <br> <i>Example Usage:</i> <pre style='display: inline; padding: 1px'>$_[1]</pre>";
return "<i>Command:</i> <pre style='display: inline; padding: 1px;'>$_[0]</pre> <br> <i>Example Usage:</i> <pre style='display: inline; padding: 1px'>$_[1]</pre>" . more_at;
}
handle remainder => sub {