Skip to content

Commit 45d8d88

Browse files
committed
feat: add note to md container parser
Signed-off-by: Innei <[email protected]>
1 parent a5156a0 commit 45d8d88

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"daisyui": "3.9.4",
5353
"dayjs": "1.11.10",
5454
"emoji-mart": "5.5.2",
55-
"emoji-picker-react": "4.5.6",
56-
"foxact": "0.2.20",
55+
"emoji-picker-react": "4.5.7",
56+
"foxact": "0.2.22",
5757
"framer-motion": "^10.16.4",
5858
"idb-keyval": "6.2.1",
5959
"immer": "^10.0.3",
@@ -109,7 +109,7 @@
109109
"rimraf": "5.0.5",
110110
"simple-git-hooks": "2.9.0",
111111
"tailwind-scrollbar": "3.0.5",
112-
"tailwind-variants": "0.1.17",
112+
"tailwind-variants": "0.1.18",
113113
"tailwindcss": "^3.3.5",
114114
"typescript": "5.2.2",
115115
"typewind": "^0.1.4",

pnpm-lock.yaml

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ui/markdown/parsers/container.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const shouldCatchContainerName = [
1818
'info',
1919
'success',
2020
'warning',
21+
'note',
2122
].join('|')
2223
export const ContainerRule: MarkdownToJSX.Rule = {
2324
match: blockRegex(
@@ -47,6 +48,7 @@ export const ContainerRule: MarkdownToJSX.Rule = {
4748
case 'error':
4849
case 'danger':
4950
case 'info':
51+
case 'note':
5052
case 'success':
5153
case 'warning': {
5254
const transformMap = {

0 commit comments

Comments
 (0)