@md-plugins/md-plugin-blockquote 0.1.0-alpha.1 → 0.1.0-alpha.5
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/LICENSE.md +1 -1
- package/README.md +7 -7
- package/package.json +6 -3
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2024-present,
|
|
3
|
+
Copyright (c) 2024-present, MD-PLUGINS
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -25,21 +25,21 @@ pnpm add @md-plugins/md-plugin-blockquote
|
|
|
25
25
|
### Basic Setup
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
import MarkdownIt from 'markdown-it'
|
|
29
|
-
import { blockquotePlugin } from 'md-plugin-blockquote'
|
|
28
|
+
import MarkdownIt from 'markdown-it'
|
|
29
|
+
import { blockquotePlugin } from 'md-plugin-blockquote'
|
|
30
30
|
|
|
31
|
-
const md = new MarkdownIt()
|
|
31
|
+
const md = new MarkdownIt()
|
|
32
32
|
md.use(blockquotePlugin, {
|
|
33
33
|
blockquoteClass: 'custom-blockquote',
|
|
34
|
-
})
|
|
34
|
+
})
|
|
35
35
|
|
|
36
36
|
const markdownContent = `
|
|
37
37
|
> This is a blockquote.
|
|
38
|
-
|
|
38
|
+
`
|
|
39
39
|
|
|
40
|
-
const renderedOutput = md.render(markdownContent)
|
|
40
|
+
const renderedOutput = md.render(markdownContent)
|
|
41
41
|
|
|
42
|
-
console.log('Rendered Output:', renderedOutput)
|
|
42
|
+
console.log('Rendered Output:', renderedOutput)
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Example Output
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@md-plugins/md-plugin-blockquote",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "A markdown-it plugin for Blockquotes with custom styles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -35,14 +35,17 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@types/markdown-it": "^14.1.2",
|
|
37
37
|
"markdown-it": "^14.1.0",
|
|
38
|
-
"@md-plugins/shared": "0.1.0-alpha.
|
|
38
|
+
"@md-plugins/shared": "0.1.0-alpha.5"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"markdown-it": "^14.1.0"
|
|
39
42
|
},
|
|
40
43
|
"publishConfig": {
|
|
41
44
|
"access": "public"
|
|
42
45
|
},
|
|
43
46
|
"scripts": {
|
|
44
47
|
"build": "unbuild",
|
|
45
|
-
"clean": "rm -rf dist",
|
|
48
|
+
"clean": "rm -rf dist/ node_modules/",
|
|
46
49
|
"test": "vitest"
|
|
47
50
|
}
|
|
48
51
|
}
|