@anydigital/eleventy-bricks 1.0.0-alpha.18 → 1.0.0-alpha.19

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "printWidth": 120
3
+ }
package/README.md CHANGED
@@ -798,7 +798,7 @@ A fully-configured Eleventy config file with:
798
798
 
799
799
  - All eleventy-bricks plugins enabled
800
800
  - Eleventy Navigation plugin
801
- - Markdown-it with anchors
801
+ - Markdown-it with anchors and attributes
802
802
  - YAML data support
803
803
  - CLI input directory support
804
804
  - Symlink support for development
@@ -806,7 +806,7 @@ A fully-configured Eleventy config file with:
806
806
  **Required dependencies:**
807
807
 
808
808
  ```bash
809
- npm install @11ty/eleventy-navigation markdown-it markdown-it-anchor js-yaml minimist
809
+ npm install @11ty/eleventy-navigation markdown-it markdown-it-anchor markdown-it-attrs js-yaml minimist
810
810
  ```
811
811
 
812
812
  **Symlink to your project:**
@@ -961,7 +961,7 @@ npx download-files --output public
961
961
  ## Requirements
962
962
 
963
963
  - Node.js >= 18.0.0
964
- - Eleventy >= 2.0.0 (supports both 2.x and 3.x)
964
+ - Eleventy >= 3.0.0
965
965
 
966
966
  ## License
967
967
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anydigital/eleventy-bricks",
3
- "version": "1.0.0-alpha.18",
3
+ "version": "1.0.0-alpha.19",
4
4
  "description": "A collection of helpful utilities and filters for Eleventy (11ty)",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -13,9 +13,6 @@
13
13
  "bin": {
14
14
  "download-files": "src/cli/download-files.js"
15
15
  },
16
- "files": [
17
- "src"
18
- ],
19
16
  "scripts": {
20
17
  "build": "npx download-files",
21
18
  "test": "node --test src/**/*.test.js"
@@ -46,6 +43,7 @@
46
43
  "node": ">=18.0.0"
47
44
  },
48
45
  "_downloadFiles": {
46
+ "https://raw.githubusercontent.com/anydigital/bricks/refs/heads/main/.prettierrc.json": ".prettierrc.json",
49
47
  "https://raw.githubusercontent.com/danurbanowicz/eleventy-sveltia-cms-starter/refs/heads/master/admin/index.html": "src/admin/index.html"
50
48
  }
51
49
  }
@@ -1,13 +1,12 @@
1
+ <!-- https://sveltiacms.app/en/docs/start#manual-installation -->
1
2
  <!DOCTYPE html>
2
3
  <html>
3
4
  <head>
4
5
  <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link rel="dns-prefetch" href="https://unpkg.com">
6
+ <meta name="robots" content="noindex" />
7
7
  <title>Sveltia CMS</title>
8
8
  </head>
9
9
  <body>
10
- <!-- Include the script that builds the page and powers Sveltia CMS -->
11
- <script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js" type="module"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/@sveltia/cms@0.128/dist/sveltia-cms.min.js"></script>
12
11
  </body>
13
12
  </html>
@@ -7,6 +7,7 @@ import eleventyBricksPlugin from "@anydigital/eleventy-bricks";
7
7
  /* Libraries */
8
8
  import markdownIt from "markdown-it";
9
9
  import markdownItAnchor from "markdown-it-anchor";
10
+ import markdownItAttrs from "markdown-it-attrs";
10
11
  /* Data */
11
12
  import yaml from "js-yaml";
12
13
 
@@ -27,25 +28,17 @@ export default function (eleventyConfig) {
27
28
  mdAutoNl2br: true,
28
29
  mdAutoRawTags: true,
29
30
  siteData: true,
30
- filters: [
31
- "attr",
32
- "where_in",
33
- "merge",
34
- "remove_tag",
35
- "if",
36
- "attr_concat",
37
- ],
31
+ filters: ["attr", "where_in", "merge", "remove_tag", "if", "attr_concat"],
38
32
  });
39
33
 
40
34
  /* Libraries */
41
35
  eleventyConfig.setLibrary(
42
36
  "md",
43
- markdownIt({
44
- html: true,
45
- linkify: true,
46
- }).use(markdownItAnchor, {
47
- permalink: markdownItAnchor.permalink.headerLink(),
48
- })
37
+ markdownIt({ html: true, linkify: true })
38
+ .use(markdownItAnchor, {
39
+ permalink: markdownItAnchor.permalink.headerLink(),
40
+ })
41
+ .use(markdownItAttrs)
49
42
  );
50
43
 
51
44
  /* Data */