apex-ruby 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0e8b147ca76e15cc47b7c82389cd32c925aabdb84580155ca98ea9cadaa4e94
4
- data.tar.gz: 7b6c52d126e87e1d7adbd22a5eb4c0371617b056b6a8a8b019edea8f78328ee2
3
+ metadata.gz: 70423c8b7b3f13723cfee24afc52bbf12c049950b241aee21e8f53dc3b971f4f
4
+ data.tar.gz: 1ea75f8a208a30aa92d886b4435d6bf246dbecb1d5fe627e87c3f211dcb9f656
5
5
  SHA512:
6
- metadata.gz: a24d7c5056504ad6557c259f62f4f7aa7f83f4214675793415587ad040affe6095a830a60a65387b76d0d3138ebfc659a100406dda633f4f426fab67d1d0043b
7
- data.tar.gz: 3e9a435b4f1d0e3539d90ed2448b646843d7b9a8b300baa032c72dc5ba12d1d9e4f881ac588e50102df688e51d7f994cdb0bfc88f355f0149baed824e8bb82f3
6
+ metadata.gz: 35f0ff23c943b29e0cc7d73fd75a8d28304a7e8bcaf490705c60dcbfe97096b2357174e77270ec00abfda417a8f9dfc0d863682e56468619f40b1275d7eb7e80
7
+ data.tar.gz: 0aa1da7ad8a6d607b1b54467e25ef386e644a653221d2cf01abf7a0455571d6607340cb19b143ae718344ec2ce660ddf9480155cc0be5cfb3ee198b9913f6e99
@@ -21,8 +21,8 @@ typedef struct cmark_node cmark_node;
21
21
 
22
22
  #define APEX_VERSION_MAJOR 1
23
23
  #define APEX_VERSION_MINOR 1
24
- #define APEX_VERSION_PATCH 38
25
- #define APEX_VERSION_STRING "1.1.38"
24
+ #define APEX_VERSION_PATCH 39
25
+ #define APEX_VERSION_STRING "1.1.39"
26
26
 
27
27
  /**
28
28
  * Processor compatibility modes
@@ -140,8 +140,11 @@ static int parse_pandoc_citation(const char *text, int pos, int len,
140
140
  char *suffix = NULL;
141
141
  char *key = NULL;
142
142
 
143
- /* Check for @key (author-in-text, no brackets) */
144
- if (*p == '@') {
143
+ /* Check for @key (author-in-text, no brackets).
144
+ * Same boundary as the early-out scan: start of text, whitespace, or '('.
145
+ * Mid-token '@' (ah-original@2x.png, user@example.com) is not a citation. */
146
+ if (*p == '@' &&
147
+ (p == text || isspace((unsigned char)p[-1]) || p[-1] == '(')) {
145
148
  p++;
146
149
  int key_len = extract_citation_key(text, apex_ptrdiff_to_int(p - text), len, &key);
147
150
  if (key_len > 0 && key) {
data/lib/apex/version.rb CHANGED
@@ -6,7 +6,7 @@ module Apex
6
6
  # via Apex::Native.version.
7
7
  module Version
8
8
  # Current gem version.
9
- VERSION = "1.0.36"
9
+ VERSION = "1.0.37"
10
10
  end
11
11
 
12
12
  # Shortcut to gem version string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra