From 096966db390e4c5a0e3cce87e4fb230b5cbe7677 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Mon, 5 Feb 2024 15:38:36 +0600 Subject: [PATCH] update packages and tabs shotcode --- package.json | 14 +++++++------- src/layouts/shortcodes/Tabs.tsx | 5 ----- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index b5c72a6..0c435f7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "3.3.2", + "version": "3.3.3", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", @@ -14,19 +14,19 @@ "remove-darkmode": "node scripts/removeDarkmode.js && yarn format" }, "dependencies": { - "@astrojs/mdx": "^2.1.0", + "@astrojs/mdx": "^2.1.1", "@astrojs/react": "^3.0.9", "@astrojs/rss": "^4.0.4", "@astrojs/sitemap": "^3.0.5", "@astrojs/tailwind": "^5.1.0", - "astro": "^4.2.6", + "astro": "^4.3.2", "astro-auto-import": "^0.4.2", "astro-font": "^0.0.77", "date-fns": "^3.3.1", "disqus-react": "^1.1.5", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "marked": "^11.2.0", + "marked": "^12.0.0", "prettier-plugin-astro": "^0.13.0", "prettier-plugin-tailwindcss": "^0.5.11", "prop-types": "^15.8.1", @@ -42,13 +42,13 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.10", "@types/marked": "^5.0.2", - "@types/node": "20.11.7", - "@types/react": "18.2.48", + "@types/node": "20.11.16", + "@types/react": "18.2.53", "@types/react-dom": "18.2.18", "autoprefixer": "^10.4.17", "eslint": "^8.56.0", "postcss": "^8.4.33", - "prettier": "^3.2.4", + "prettier": "^3.2.5", "prettier-plugin-astro": "^0.13.0", "prettier-plugin-tailwindcss": "^0.5.11", "sass": "^1.70.0", diff --git a/src/layouts/shortcodes/Tabs.tsx b/src/layouts/shortcodes/Tabs.tsx index 59aa44f..448443c 100644 --- a/src/layouts/shortcodes/Tabs.tsx +++ b/src/layouts/shortcodes/Tabs.tsx @@ -1,11 +1,6 @@ import { marked } from "marked"; import React, { useEffect, useRef, useState } from "react"; -marked.use({ - mangle: false, - headerIds: false, -}); - const Tabs = ({ children }: { children: React.ReactElement }) => { const [active, setActive] = useState(0); const [defaultFocus, setDefaultFocus] = useState(false);