sfc-utils 1.4.112 → 1.4.114
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.
- package/copy/docs.js +6 -3
- package/package.json +1 -1
package/copy/docs.js
CHANGED
|
@@ -197,9 +197,12 @@ let grabDocs = (
|
|
|
197
197
|
},
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
if
|
|
201
|
-
|
|
202
|
-
aTag.parent.attribs.style
|
|
200
|
+
//if the parent of the aTag has a style attribute, we need to pass that along
|
|
201
|
+
if (
|
|
202
|
+
aTag.parent.attribs.style &&
|
|
203
|
+
typeof aTag.parent.attribs.style === "string" &&
|
|
204
|
+
(aTag.parent.attribs.style.includes("font-style:italic") ||
|
|
205
|
+
aTag.parent.attribs.style.includes("font-weight:700"))
|
|
203
206
|
) {
|
|
204
207
|
aTag["parent"] = {
|
|
205
208
|
attribs: {
|