@forsakringskassan/docs-live-example 1.4.0 → 1.4.1

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.js +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1623,7 +1623,8 @@ module.exports = __toCommonJS(src_exports);
1623
1623
  var import_vue2 = require("vue");
1624
1624
 
1625
1625
  // src/utils/highlight.ts
1626
- var prettier = __toESM(require("prettier"));
1626
+ var import_standalone = __toESM(require("prettier/standalone"));
1627
+ var import_parser_html = __toESM(require("prettier/parser-html"));
1627
1628
 
1628
1629
  // node_modules/highlight.js/es/core.js
1629
1630
  var import_core = __toESM(require_core(), 1);
@@ -1859,13 +1860,14 @@ function xml(hljs) {
1859
1860
  core_default.registerLanguage("html", xml);
1860
1861
  var prettierConfig = {
1861
1862
  parser: "html",
1863
+ plugins: [import_parser_html.default],
1862
1864
  singleQuote: false,
1863
1865
  arrowParens: "always",
1864
1866
  tabWidth: 4,
1865
1867
  printWidth: 80
1866
1868
  };
1867
1869
  async function highlight(code) {
1868
- const formatted = await prettier.format(code, prettierConfig);
1870
+ const formatted = await import_standalone.default.format(code, prettierConfig);
1869
1871
  const { value } = core_default.highlight(formatted, { language: "html" });
1870
1872
  return `<code class="hljs lang-html" tabindex="0">${value}</code>`;
1871
1873
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-live-example",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Components used for live examples",
5
5
  "keywords": [
6
6
  "documentation"
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "peerDependencies": {
33
33
  "html-validate": ">= 7.9.0",
34
- "prettier": "^2 || ^3",
34
+ "prettier": "^2.3 || ^3",
35
35
  "vue": "^3.4.15"
36
36
  },
37
37
  "peerDependenciesMeta": {