@duskmoon-dev/el-markdown 0.1.0 → 0.2.0

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,21 +16,33 @@ bun add mermaid
16
16
 
17
17
  ## Usage
18
18
 
19
- ### Inline Content
19
+ ### Auto-Register (Recommended)
20
20
 
21
- ````html
21
+ The simplest way to use the component - just import and it's ready:
22
+
23
+ ```html
24
+ <!-- Via CDN -->
25
+ <script type="module" src="https://esm.sh/@duskmoon-dev/el-markdown/register"></script>
26
+
27
+ <!-- Now use the element -->
28
+ <el-dm-markdown> # Hello World This is **markdown** content. </el-dm-markdown>
29
+ ```
30
+
31
+ Or with a bundler:
32
+
33
+ ```ts
34
+ import '@duskmoon-dev/el-markdown/register';
35
+ ```
36
+
37
+ ### Manual Registration
38
+
39
+ ```html
22
40
  <script type="module">
23
41
  import { register } from '@duskmoon-dev/el-markdown';
24
42
  register();
25
43
  </script>
26
44
 
27
- <el-dm-markdown>
28
- # Hello World This is **markdown** content with: - Lists - Code blocks - And more! ```javascript
29
- console.log('Syntax highlighting!');</el-dm-markdown
30
- >
31
- ````
32
-
33
- </el-dm-markdown>
45
+ <el-dm-markdown> # Hello World </el-dm-markdown>
34
46
  ```
35
47
 
36
48
  ### From URL