@do11y/docs 0.0.10 → 0.0.11

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.
@@ -3,9 +3,7 @@ import { existsSync } from 'node:fs';
3
3
  import { componentPlugin } from '@mdit-vue/plugin-component';
4
4
  import { sfcPlugin } from '@mdit-vue/plugin-sfc';
5
5
  import { frontmatterPlugin } from '@mdit-vue/plugin-frontmatter';
6
- import markPlugin from 'markdown-it-mark';
7
6
  import attrsPlugin from 'markdown-it-attrs';
8
- import anchorPlugin from 'markdown-it-anchor';
9
7
  import metaPlugin from 'markdown-it-vue-meta';
10
8
  import markdown from 'markdown-it';
11
9
  import { root } from '../../files.js';
@@ -24,6 +22,7 @@ export default (options) => {
24
22
  md.use(frontmatterPlugin);
25
23
  md.use(sfcPlugin);
26
24
  md.use(componentPlugin);
25
+ md.use(attrsPlugin);
27
26
  if (options?.metaRenderer) {
28
27
  let tsconfig = join(root, 'tsconfig.app.json');
29
28
  if (!existsSync(tsconfig)) {
@@ -34,9 +33,6 @@ export default (options) => {
34
33
  tsconfig,
35
34
  });
36
35
  }
37
- md.use(anchorPlugin, { permalink: anchorPlugin.permalink.headerLink() });
38
- md.use(markPlugin);
39
- md.use(attrsPlugin);
40
36
  if (options?.setup) {
41
37
  md.use(options.setup);
42
38
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@do11y/docs",
3
3
  "description": "A very bare-bones tool to help document Vue components.",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -37,18 +37,16 @@
37
37
  "fast-glob": "^3.3.3",
38
38
  "front-matter": "^4.0.2",
39
39
  "markdown-it": "^14.1.0",
40
- "markdown-it-anchor": "^9.2.0",
41
40
  "markdown-it-attrs": "^4.3.1",
42
- "markdown-it-mark": "^4.0.0",
43
41
  "markdown-it-vue-meta": "^0.0.2",
44
42
  "v-custom-block": "^1.0.67",
45
43
  "@do11y/ui": "0.0.5"
46
44
  },
47
45
  "devDependencies": {
48
46
  "@tsconfig/node24": "^24.0.3",
49
- "@types/node": "24.10.3",
50
47
  "@types/markdown-it": "^14.1.2",
51
48
  "@types/markdown-it-attrs": "^4.1.3",
49
+ "@types/node": "24.10.3",
52
50
  "typescript": "5.9.3",
53
51
  "vite": "^7.2.7"
54
52
  },
@@ -9,7 +9,7 @@ slug: '/example'
9
9
  const route = useRoute();
10
10
  </script>
11
11
 
12
- # {{ route.meta.title }}
12
+ # {{ route.meta.title }} {#title}
13
13
 
14
14
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores, harum itaque consequatur vel
15
15
  voluptatem vero labore aliquam fuga veritatis, voluptatum architecto. Obcaecati, vitae delectus