@cssdoc/providers 0.5.3 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -389,7 +389,7 @@ 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("", ex.startsWith("```") ? ex : `\`\`\`${ex.includes("<") ? "html" : "css"}\n${ex}\n\`\`\``);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssdoc/providers",
3
- "version": "0.5.3",
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.3",
33
- "@cssdoc/index": "0.5.3"
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",