Skip to content

Commit

Permalink
feat: add note to md container parser
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Oct 29, 2023
1 parent a5156a0 commit 45d8d88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"daisyui": "3.9.4",
"dayjs": "1.11.10",
"emoji-mart": "5.5.2",
"emoji-picker-react": "4.5.6",
"foxact": "0.2.20",
"emoji-picker-react": "4.5.7",
"foxact": "0.2.22",
"framer-motion": "^10.16.4",
"idb-keyval": "6.2.1",
"immer": "^10.0.3",
Expand Down Expand Up @@ -109,7 +109,7 @@
"rimraf": "5.0.5",
"simple-git-hooks": "2.9.0",
"tailwind-scrollbar": "3.0.5",
"tailwind-variants": "0.1.17",
"tailwind-variants": "0.1.18",
"tailwindcss": "^3.3.5",
"typescript": "5.2.2",
"typewind": "^0.1.4",
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/components/ui/markdown/parsers/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const shouldCatchContainerName = [
'info',
'success',
'warning',
'note',
].join('|')
export const ContainerRule: MarkdownToJSX.Rule = {
match: blockRegex(
Expand Down Expand Up @@ -47,6 +48,7 @@ export const ContainerRule: MarkdownToJSX.Rule = {
case 'error':
case 'danger':
case 'info':
case 'note':
case 'success':
case 'warning': {
const transformMap = {
Expand Down

1 comment on commit 45d8d88

@vercel
Copy link

@vercel vercel bot commented on 45d8d88 Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
springtide.vercel.app
shiro-git-main-innei.vercel.app
innei.in

Please sign in to comment.