From cb64ab2bedef9c5e60f972ed1881e2daac605a54 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Mon, 11 Jun 2012 00:44:10 -0500 Subject: [PATCH] Added support for blockquotes with only Author but now cited work. Closes #470 --- plugins/blockquote.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/blockquote.rb b/plugins/blockquote.rb index 62e7d14..bdb211a 100644 --- a/plugins/blockquote.rb +++ b/plugins/blockquote.rb @@ -27,19 +27,19 @@ module Jekyll @by = nil @source = nil @title = nil - if markup =~ FullCiteWithTitle + if markup.strip =~ FullCiteWithTitle @by = $1 @source = $2 + $3 @title = $4.titlecase - elsif markup =~ FullCite + elsif markup.strip =~ FullCite @by = $1 @source = $2 + $3 - elsif markup =~ Author + elsif markup.strip =~ Author if $1 =~ /([^,]+),([^,]+)/ @by = $1 @title = $2.titlecase else - @by = $1 + @by = markup end end super