From fd753d1201388db180ad9f891012cf7e79b699e4 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 18 May 2019 17:14:01 -0500 Subject: [PATCH] add html to `format` bangtag + shortcut for bbdown` --- app/lib/bangtags.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 4ba6b5e92..33dc33af6 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -423,9 +423,14 @@ class Bangtags 'bbc' => 'text/x-bbcode', 'bbcode' => 'text/x-bbcode', + 'd' => 'text/x-bbcode+markdown', 'bm' => 'text/x-bbcode+markdown', 'bbm' => 'text/x-bbcode+markdown', 'bbdown' => 'text/x-bbcode+markdown', + + 'h' => 'text/html', + 'htm' => 'text/html', + 'html' => 'text/html', } v = cmd[1].downcase status.content_type = content_types[c] unless content_types[c].nil?