diff --git a/CHANGELOG.md b/CHANGELOG.md index ceafe88..31c6a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ # Changelog ## [v1.2.20](https://github.com/hibbitts-design/docsify-open-course-starter-kit-local/releases/tag/v1.2.20) -### 10/15/2024 +### 10/17/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 Markdown Prism language file +* Fix formatting conflict with Prism formatted code blocks ## [v1.2.19](https://github.com/hibbitts-design/docsify-open-course-starter-kit-local/releases/tag/v1.2.19) ### 10/09/2024 diff --git a/docs/assets/css/theme.css b/docs/assets/css/theme.css index f57b6f7..48ab77c 100644 --- a/docs/assets/css/theme.css +++ b/docs/assets/css/theme.css @@ -330,12 +330,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 { 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;