apex-ruby 1.0.45 → 1.0.46

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: 55f46b5882430ec3db488a30a91c1e026cb10af55a44e05765be695542268584
4
- data.tar.gz: 5234aea6b39f08fb6398b49f6beb6e91c3c8e6d5c701cbf4d6ade0a58dffc61c
3
+ metadata.gz: 7642d16a43cd007ab7d367e6882d9e835e019623ff24bcc94f171c5c3eade78c
4
+ data.tar.gz: 88d347ea0d863a8dc2b137ff730664731533b7b7e65823c4a7b49fad6ba2c60c
5
5
  SHA512:
6
- metadata.gz: 2feca8bc1497bf459cdbf2b772dc8657df94a2930f601038803fcff68da31a416378aa02ea5f04fac869acbcb466f8b32b8fc090ed1757612c2fa4f4c5862098
7
- data.tar.gz: 1d81a7a77ec9e915a7203ba100a94c539d1008435dec05308f6a62e5064b5ad4e779f96d451d5325146e9f15002693a825e745908ff3cb0cf710a8e6dd3e8cea
6
+ metadata.gz: 163c85f71a5c055c1a9afc081cdd88ef066524abdb08e62e6dc68e89b2c949df8e4342eef09ab4ee09ae04aec6d692c0acb7b6bea35391281b3ca8bbdf2fce59
7
+ data.tar.gz: f915b8b4f6421cd074b4a1c7cd04a55e4baa3f10a953838a2f950daa6babb6c817bae9c60bebd4c170e7dfa3747aa8fd00bdaa543f2142560e240a158cdd8669
@@ -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 51
25
- #define APEX_VERSION_STRING "1.1.51"
24
+ #define APEX_VERSION_PATCH 53
25
+ #define APEX_VERSION_STRING "1.1.53"
26
26
 
27
27
  /**
28
28
  * Processor compatibility modes
@@ -22,11 +22,13 @@
22
22
  */
23
23
 
24
24
  #include "definition_list.h"
25
+ #include "ial.h"
25
26
  #include "parser.h"
26
27
  #include <ctype.h>
27
28
  #include "node.h"
28
29
  #include "html.h"
29
30
  #include "render.h"
31
+ #include "../html_renderer.h"
30
32
  #include <string.h>
31
33
  #include <stdlib.h>
32
34
  #include <stdbool.h>
@@ -282,7 +284,12 @@ static char *render_inline_with_doc(const char *content, size_t content_len,
282
284
  cmark_node_free(doc);
283
285
  return NULL;
284
286
  }
285
- char *html = cmark_render_html(last, opts, NULL);
287
+ /* Terms and definitions are rendered before the document IAL pass, so
288
+ * apply span attributes here or {:.class} stays literal text in the <dt>. */
289
+ if (memchr(content, '{', content_len) != NULL) {
290
+ apex_process_ial_in_tree(doc, NULL);
291
+ }
292
+ char *html = apex_render_html_with_attributes(last, opts);
286
293
  cmark_node_free(doc);
287
294
  if (!html) return NULL;
288
295
 
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.45"
9
+ VERSION = "1.0.46"
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.45
4
+ version: 1.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra