From 647e91edcd839216cf6ce219db414fc662f91dfe Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Sun, 5 Mar 2023 16:06:08 +0700 Subject: [PATCH 1/3] fix(ui): update CSS styles for code blocks --- astro.config.mjs | 7 ++++++- tailwind.config.cjs | 8 ++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index a18ba679..96784e29 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -39,7 +39,12 @@ export default defineConfig({ '@resvg/resvg-js', ], }, - } + }, + markdown: { + shikiConfig: { + wrap: true, + }, + }, }) // vite plugin to import fonts diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 80f84018..b913429d 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -21,14 +21,10 @@ module.exports = { '--tw-prose-headings': theme('textColor.style.primary'), '--tw-prose-bold': theme('textColor.style.primary'), '--tw-prose-quotes': theme('textColor.style.primary'), - '--tw-prose-code': theme('textColor.style.primary-inverted'), - '--tw-prose-pre-bg': theme('textColor.style.primary'), + '--tw-prose-pre-bg': '#0d1117', code: { backgroundColor: theme('backgroundColor.style.primary'), - paddingTop: '2px', - paddingBottom: '5px', - paddingLeft: '5px', - paddingRight: '5px', + padding: '5px', borderRadius: '3px', }, 'code::before': { From 5e88ce9c1ec93297c37c407116c9932061fafea7 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Wed, 8 Mar 2023 10:44:21 +0700 Subject: [PATCH 2/3] fix(markdown): update markdown config to nowrap text --- astro.config.mjs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 96784e29..fc958c29 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -40,11 +40,6 @@ export default defineConfig({ ], }, }, - markdown: { - shikiConfig: { - wrap: true, - }, - }, }) // vite plugin to import fonts From 58981cbfd973fc0d2612cf3fe06c5f9fc5b35f65 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Wed, 8 Mar 2023 20:28:35 +0700 Subject: [PATCH 3/3] chore(release): v2.2.2 --- .changes/v2.2.2.md | 9 +++++++++ CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .changes/v2.2.2.md diff --git a/.changes/v2.2.2.md b/.changes/v2.2.2.md new file mode 100644 index 00000000..e3fd222d --- /dev/null +++ b/.changes/v2.2.2.md @@ -0,0 +1,9 @@ +## [v2.2.2](https://github.com/ansidev/leetcode-blog/compare/v2.2.1...v2.2.2) (2023-03-08) + +### Bug Fixes + +- **markdown:** update markdown config to nowrap text + +- **ui:** update CSS styles for code blocks + +Full Changelog: [v2.2.1...v2.2.2](https://github.com/ansidev/leetcode-blog/compare/v2.2.1...v2.2.2) diff --git a/CHANGELOG.md b/CHANGELOG.md index f12eaf3f..bc7edb1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [v2.2.2](https://github.com/ansidev/leetcode-blog/compare/v2.2.1...v2.2.2) (2023-03-08) + +### Bug Fixes + +- **markdown:** update markdown config to nowrap text + +- **ui:** update CSS styles for code blocks + +Full Changelog: [v2.2.1...v2.2.2](https://github.com/ansidev/leetcode-blog/compare/v2.2.1...v2.2.2) + ## [v2.2.1](https://github.com/ansidev/leetcode-blog/compare/v2.2.0...v2.2.1) (2023-03-05) ### Bug Fixes diff --git a/package.json b/package.json index 8531657c..526e0cdc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "leetcode-blog", "description": "Solutions for LeetCode problems - Written by ansidev", "type": "module", - "version": "2.2.1", + "version": "2.2.2", "license": "MIT", "scripts": { "lc:new": "tsx ./src/cmd/leetcode.ts",