From 90979417217a71200e8f7c2f8f7d2c7078cbee5b Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Tue, 15 Oct 2024 15:00:54 -0700 Subject: [PATCH 1/6] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48783f3..8adc859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## [v1.2.20](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.20) -### 10/15/2024 +### XX/XX/2024 **Bugfix:** * Scroll offset fix (with thanks and appreciation to @rizdaprasetya for the initial code) From 718720d7c3ec8769f26aa27b163271af681010ea Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Tue, 15 Oct 2024 16:58:28 -0700 Subject: [PATCH 2/6] Fix formatting conflict with Prism formatted code blocks. --- docs/assets/css/toc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/assets/css/toc.css b/docs/assets/css/toc.css index 95ca108..3f2772e 100644 --- a/docs/assets/css/toc.css +++ b/docs/assets/css/toc.css @@ -16,6 +16,10 @@ flex-direction: row-reverse; justify-content: center; } +/* Specific style for .token.content inside code blocks */ +.content code .token.content { + display: inline; +} .markdown-section { flex: 1 1 0%; margin: 0 48px; From 2d1188742ea50fca413ada0052debef0df51e8ba Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Tue, 15 Oct 2024 16:58:58 -0700 Subject: [PATCH 3/6] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8adc859..51b49b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ **Bugfix:** * Scroll offset fix (with thanks and appreciation to @rizdaprasetya for the initial code) * Added missing Prism language files +* Fix formatting conflict with Prism formatted code blocks ## [v1.2.19](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.19) ### 10/09/2024 From 2b037b5e39dd41f710be1a9072762c3e7f8941b7 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Wed, 16 Oct 2024 09:26:32 -0700 Subject: [PATCH 4/6] Updated CSS with word-wrap for code blocks. --- docs/assets/css/theme.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/assets/css/theme.css b/docs/assets/css/theme.css index adf6d1f..d732c92 100644 --- a/docs/assets/css/theme.css +++ b/docs/assets/css/theme.css @@ -229,12 +229,18 @@ } .markdown-section code { - white-space: pre-wrap!important; - overflow-wrap: anywhere; + white-space: pre-wrap !important; + overflow-wrap: break-word; +} + +.markdown-section pre { + white-space: pre-wrap !important; + overflow-wrap: break-word; } .markdown-section pre code { - word-break: break-all!important; + white-space: pre-wrap !important; + overflow-wrap: break-word; } .markdown-section a { From cc5196713ec2bb9ce51193454f3d562ee54fc75a Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Wed, 16 Oct 2024 09:26:46 -0700 Subject: [PATCH 5/6] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b49b8..1f36063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ## [v1.2.20](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.20) ### XX/XX/2024 +**Improved:** +* Updated CSS with word-wrap for code blocks + **Bugfix:** * Scroll offset fix (with thanks and appreciation to @rizdaprasetya for the initial code) * Added missing Prism language files From c93efe3df80160fb7c25b076cfe3592cb844a865 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Thu, 17 Oct 2024 08:16:14 -0700 Subject: [PATCH 6/6] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f36063..2e8a8dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## [v1.2.20](https://github.com/hibbitts-design/docsify-open-course-starter-kit/releases/tag/v1.2.20) -### XX/XX/2024 +### 10/17/2024 **Improved:** * Updated CSS with word-wrap for code blocks