Skip to content

Commit

Permalink
Fix #44 where cite macros are not replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramFan committed May 20, 2019
1 parent e12041a commit a902251
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/asciidoctor-bibtex/bibextension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ def process document
block.instance_variable_set :@text, line
else
block.lines.each do |line|
tmp = line.clone
processor.citations.retrieve_citations(line).each do |citation|
line = line.gsub(citation.original, processor.complete_citation(citation))
tmp = tmp.gsub(citation.original, processor.complete_citation(citation))
end
line.replace tmp
end
end
end
Expand Down

0 comments on commit a902251

Please sign in to comment.