@cssdoc/providers 0.5.2 → 0.5.4
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/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -389,13 +389,13 @@ const record = {
|
|
|
389
389
|
const frag = ["", `**$(book) Example${entry.examples.length > 1 ? "s" : ""}**`];
|
|
390
390
|
if (w === "content") for (const e of entry.examples) {
|
|
391
391
|
const ex = e.trim();
|
|
392
|
-
frag.push("",
|
|
392
|
+
frag.push("", /(^|\n)\s*```/u.test(ex) ? ex : `\`\`\`${ex.includes("<") ? "html" : "css"}\n${ex}\n\`\`\``);
|
|
393
393
|
}
|
|
394
394
|
else frag.push("", "_—_");
|
|
395
395
|
fragments.examples = frag;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
for (const key of sectionOrder
|
|
398
|
+
for (const key of sectionOrder?.length ? sectionOrder : HOVER_SECTION_KEYS) {
|
|
399
399
|
const frag = fragments[key];
|
|
400
400
|
if (frag) lines.push(...frag);
|
|
401
401
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssdoc/providers",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Host-agnostic aspect providers over the @cssdoc/index — diagnostics, completions, hover, and definitions for modifiers, custom properties, structure, functions, states, and conditions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"css-tree": "^3.2.1",
|
|
32
|
-
"@cssdoc/core": "0.5.
|
|
33
|
-
"@cssdoc/index": "0.5.
|
|
32
|
+
"@cssdoc/core": "0.5.4",
|
|
33
|
+
"@cssdoc/index": "0.5.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/css-tree": "^2.3.11",
|