mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
Added support for blockquotes with only Author but now cited work. Closes #470
This commit is contained in:
parent
2444c2c804
commit
6b38214a33
@ -27,19 +27,19 @@ module Jekyll
|
|||||||
@by = nil
|
@by = nil
|
||||||
@source = nil
|
@source = nil
|
||||||
@title = nil
|
@title = nil
|
||||||
if markup =~ FullCiteWithTitle
|
if markup.strip =~ FullCiteWithTitle
|
||||||
@by = $1
|
@by = $1
|
||||||
@source = $2 + $3
|
@source = $2 + $3
|
||||||
@title = $4.titlecase
|
@title = $4.titlecase
|
||||||
elsif markup =~ FullCite
|
elsif markup.strip =~ FullCite
|
||||||
@by = $1
|
@by = $1
|
||||||
@source = $2 + $3
|
@source = $2 + $3
|
||||||
elsif markup =~ Author
|
elsif markup.strip =~ Author
|
||||||
if $1 =~ /([^,]+),([^,]+)/
|
if $1 =~ /([^,]+),([^,]+)/
|
||||||
@by = $1
|
@by = $1
|
||||||
@title = $2.titlecase
|
@title = $2.titlecase
|
||||||
else
|
else
|
||||||
@by = $1
|
@by = markup
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
|
Loading…
Reference in New Issue
Block a user