added syntax for images!

This commit is contained in:
Starbeamrainbowlabs 2015-05-26 18:05:19 +01:00
parent 173987512e
commit 613a7f9ecd
2 changed files with 4 additions and 0 deletions

View File

@ -357,6 +357,8 @@ class Slimdown {
'/(\*)(.*?)\1/' => '<strong>\2</strong>', // bold
// todo test these
'/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '<img src="\2" alt="\1" style="max-width: \3; float: \4;" />', // images with size
'/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '<img src="\2" alt="\1" style="max-width: \3;" />', // images with size
'/!\[(.*)\]\((.*)\)/' => '<img src="\2" alt="\1" />', // basic images
// todo end

View File

@ -511,6 +511,8 @@ class Slimdown {
'/(\*)(.*?)\1/' => '<strong>\2</strong>', // bold
// todo test these
'/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '<img src="\2" alt="\1" style="max-width: \3; float: \4;" />', // images with size
'/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '<img src="\2" alt="\1" style="max-width: \3;" />', // images with size
'/!\[(.*)\]\((.*)\)/' => '<img src="\2" alt="\1" />', // basic images
// todo end