vite-plugin-norg 1.1.0 → 1.1.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.
package/README.md CHANGED
@@ -16,22 +16,21 @@ npm install -D vite-plugin-norg
16
16
 
17
17
  ## Quick Setup
18
18
 
19
- ### HTML Output
20
-
21
- ```javascript
22
- import { norgPlugin } from 'vite-plugin-norg';
19
+ ```typescript
23
20
  import { defineConfig } from 'vite';
21
+ import { norgPlugin } from 'vite-plugin-norg';
24
22
 
25
23
  export default defineConfig({
26
24
  plugins: [
27
25
  norgPlugin({
28
26
  mode: 'html',
29
- include: ['**/*.norg'],
30
27
  }),
31
28
  ],
32
29
  });
33
30
  ```
34
31
 
32
+ ### HTML Output
33
+
35
34
  ```javascript
36
35
  import { metadata, html } from './document.norg';
37
36
  console.log(metadata.title); // "My Document"
@@ -40,17 +39,6 @@ document.body.innerHTML = html;
40
39
 
41
40
  ### React Components
42
41
 
43
- ```javascript
44
- export default defineConfig({
45
- plugins: [
46
- norgPlugin({
47
- mode: 'react',
48
- include: ['**/*.norg'],
49
- }),
50
- ],
51
- });
52
- ```
53
-
54
42
  ```jsx
55
43
  import { metadata, Component } from './document.norg';
56
44
 
@@ -66,17 +54,6 @@ export default function App() {
66
54
 
67
55
  ### Svelte Components
68
56
 
69
- ```javascript
70
- export default defineConfig({
71
- plugins: [
72
- norgPlugin({
73
- mode: 'svelte',
74
- include: ['**/*.norg'],
75
- }),
76
- ],
77
- });
78
- ```
79
-
80
57
  ```svelte
81
58
  <script>
82
59
  import Document, { metadata } from './document.norg';