New syntax for sequence diagrams is {{{{{{ }}}}}}.
This commit is contained in:
bootstraponline
2012-06-17 16:11:59 -06:00
parent bc5896b51f
commit ee56509302
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ module Gollum
#
# Returns the placeholder'd String data.
def extract_wsd(data)
data.gsub(/^\{\{\{ ?(.+?)\r?\n(.+?)\r?\n\}\}\}\r?$/m) do
data.gsub(/^\{\{\{\{\{\{ ?(.+?)\r?\n(.+?)\r?\n\}\}\}\}\}\}\r?$/m) do
id = Digest::SHA1.hexdigest($2)
@wsdmap[id] = { :style => $1, :code => $2 }
id
+1 -1
View File
@@ -491,7 +491,7 @@ np.array([[2,2],[1,3]],np.float)
#########################################################################
test "sequence diagram blocks" do
content = "a\n\n{{{default\nalice->bob: Test\n}}}\n\nb"
content = "a\n\n{{{{{{default\nalice->bob: Test\n}}}}}}\n\nb"
output = /.*<img src="http:\/\/www\.websequencediagrams\.com\/\?img=\w{9}" \/>.*/
index = @wiki.repo.index