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.
Files changed (2) hide show
  1. package/copy/docs.js +6 -3
  2. package/package.json +1 -1
package/copy/docs.js CHANGED
@@ -197,9 +197,12 @@ let grabDocs = (
197
197
  },
198
198
  };
199
199
 
200
- if ((aTag.parent.attribs && aTag.parent.attribs.style) && (
201
- aTag.parent.attribs.style.includes("font-style:italic") ||
202
- aTag.parent.attribs.style.includes("font-weight:700"))
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.112",
3
+ "version": "1.4.114",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",