apex-ruby 1.0.40 → 1.0.41

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: ee084bd77c91c213aa431c0485b23ec3a15106ee3f341d92e5885f29c8351c93
4
- data.tar.gz: 7840707f775f33a7562734f60e5d69db520a93d98e95d9450483e684972d01e6
3
+ metadata.gz: e6a2086248dff794040d84d718d1d68309370ba7e7c45fe49d4b2fcb1fc81754
4
+ data.tar.gz: 7810a4e7ff7eab5ef22ad8bc0c95ba5a22daeede9257f8ccd74bf27a51863bbc
5
5
  SHA512:
6
- metadata.gz: d3e0f7af016badd58f00b1fa33742c4ee87ec6a369480e62867252fb3a13a5d3fb6b994abb63931860ddfbf94bed8dc50f959ad2c15d900d8c05c0499b99fd05
7
- data.tar.gz: dbb6ea6f6087e1bc558d1fe55003061bb7ad76b6992a6ff80197ef6edf1abb3839c5ee494afaebcb7c421740badd4a675d0dbda8585ed73f524b4186f5c9b4f6
6
+ metadata.gz: 045ccea76529a5a5309049c5ca786a84927c573e5a69b9c24b230f4cf62868b4327a2fc3dd7123ee6d7410bc767e820a3265b3eb425a1fe00d5816c7cf8073d6
7
+ data.tar.gz: 1a573a1fe4be54962bfd8841742f86d74ed4271aab401420d17cbc7d8f0cc9f82af7211535be030786704bde6bce419ba3b00bcd93900a4838bf0a37e07ca493
@@ -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 43
25
- #define APEX_VERSION_STRING "1.1.43"
24
+ #define APEX_VERSION_PATCH 46
25
+ #define APEX_VERSION_STRING "1.1.46"
26
26
 
27
27
  /**
28
28
  * Processor compatibility modes
@@ -1222,9 +1222,16 @@ static bool process_span_ial_in_container(cmark_node *container, ald_entry *alds
1222
1222
  bool has_preceding_content = (cmark_node_previous(child) != NULL) || (ial_start > text);
1223
1223
  if (container_type == CMARK_NODE_PARAGRAPH && has_preceding_content) {
1224
1224
  /* IAL was at end of text - apply to this paragraph (e.g. "Text\n{: .lead }" on one block).
1225
- * Inside a blockquote, "> {: .class}" follows the paragraph, so the class stays on that paragraph. */
1225
+ * Inside a blockquote, "> {: .class}" follows the paragraph, so the class stays on that paragraph.
1226
+ * On the list marker line, the IAL belongs to the item. A later paragraph inside the item keeps its own class. */
1227
+ cmark_node *attr_node = container;
1228
+ cmark_node *parent = cmark_node_parent(container);
1229
+ if (parent && cmark_node_get_type(parent) == CMARK_NODE_ITEM &&
1230
+ cmark_node_first_child(parent) == container) {
1231
+ attr_node = parent;
1232
+ }
1226
1233
  char *attr_str = attributes_to_html(attrs);
1227
- cmark_node_set_user_data(container, attr_str);
1234
+ cmark_node_set_user_data(attr_node, attr_str);
1228
1235
  apex_free_attributes(attrs);
1229
1236
 
1230
1237
  /* Remove the IAL from the text node */
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.40"
9
+ VERSION = "1.0.41"
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.40
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra