diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-31 22:19:37 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-31 22:19:37 +0200 |
commit | 5db61f2ea1725e87df08a5d5ec2d83aec4a8b8fe (patch) | |
tree | ba1df0a327878a5fb71c8944704f89684d06d639 /pandoc-cs1 | |
parent | a2c5133814f19daac85c48e986a34de3fb7cdb29 (diff) |
Fix relax regex to permit curly quotes within cite (e.g. to protect capitalization).
Diffstat (limited to 'pandoc-cs1')
-rwxr-xr-x | pandoc-cs1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,7 +26,7 @@ pandoc_filter sub { return unless ($self->name eq 'RawInline' and $self->format eq 'mediawiki'); given ($self->content) { - when (/^\{\{cite\s+(\w+)\s*\|([^}]*)\}}$/) { + when (/^\{\{cite\s+(\w+)\s*\|(.*)\}\}$/) { my $id = 'ref'.++$i; my @data = pairmap { $b =~ s/"/\\"/g; "$a=\"$b\"" } map { /^\s*(\w+)\s*=\s*"?(.*?)"?\s*$/ } |