chiark
/
gitweb
/
~mdw
/
odin-cgi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin/populate-lang-table, mason/pastebin/%show: Add Markdown support.
[odin-cgi]
/
mason
/
pastebin
/
%show
diff --git
a/mason/pastebin/%show
b/mason/pastebin/%show
index cfa0f263b1bf952787f5355855e3c5fa7faed762..a0e7f672178779dd89c22548b143ed6ecb3f801a 100644
(file)
--- a/
mason/pastebin/%show
+++ b/
mason/pastebin/%show
@@
-28,6
+28,9
@@
% filter "highlight", $m, $content,
% "highlight", "-Ohtml", "-f", "-t8", "-S$1";
</pre>
% filter "highlight", $m, $content,
% "highlight", "-Ohtml", "-f", "-t8", "-S$1";
</pre>
+% } elsif ($lang eq "md") {
+% filter "markdown", $m, $content,
+% "markdown", "-fnohtml,autolink,safelink,footnote";
% } else {
<div class="note">
<p>I don't know how to display content with language
% } else {
<div class="note">
<p>I don't know how to display content with language