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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6a2086248dff794040d84d718d1d68309370ba7e7c45fe49d4b2fcb1fc81754
|
|
4
|
+
data.tar.gz: 7810a4e7ff7eab5ef22ad8bc0c95ba5a22daeede9257f8ccd74bf27a51863bbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
25
|
-
#define APEX_VERSION_STRING "1.1.
|
|
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(
|
|
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