asciidoctor-bibtex 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor-bibtex/extensions.rb +7 -3
- data/lib/asciidoctor-bibtex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961c0ec9cfd281aab9ea43e5191ff9ad845849fd851a61625329c0676099f246
|
4
|
+
data.tar.gz: c968cd134fcf4696af048c5c30c2316b93e7fcde050b6230581063e9ccdd44d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2d39bd265c5e4f114d41cd3d9b2d0a8ea6f70ef416a2a631ee316a1005ae397ecc0e0d0bac57a17193a2e69654d88469e3b1cb10c1e679ae943998ae42fc86
|
7
|
+
data.tar.gz: b57e19aa3ca7365e1f1e6f5f94dcfc9cabc53247212f4be0fe40e22708733ab320c02676170509562c4a77914d88dd9038be50a0eea4cb6c62b66ff15db88bfd
|
@@ -109,9 +109,13 @@ module AsciidoctorBibtex
|
|
109
109
|
# Second pass: replace citations with citation texts.
|
110
110
|
prose_blocks.each do |block|
|
111
111
|
if block.context == :list_item || block.context == :table_cell
|
112
|
-
|
113
|
-
|
114
|
-
block.text
|
112
|
+
# NOTE: we access the instance variable @text directly to prevent
|
113
|
+
# asciidoctor from changing the raw texts.
|
114
|
+
line = block.instance_variable_get(:@text)
|
115
|
+
if !line.empty?
|
116
|
+
line = processor.replace_citation_macros(line)
|
117
|
+
block.instance_variable_set(:@text, line)
|
118
|
+
end
|
115
119
|
else
|
116
120
|
block.lines.each_with_index do |line, index|
|
117
121
|
line = processor.replace_citation_macros(line)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-bibtex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zhang YANG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|