Enable Prism highlighting and fix code-block display#553
Open
sboldyreva wants to merge 1 commit into
Open
Conversation
The `@vuepress/plugin-prismjs` package shipped in package.json but was never registered, so fences with a language hint (```bash, ```json, ```markdown, ...) produced no tokens. Combined with a global :not(.language-text) > code rule that painted any non-text block's text in dark blue (#1f3f5b) and a code-fade-mask gradient that assumed a dark background variable nobody set, this rendered as dark-blue-on-black strips on the right side of every highlighted block. Changes: * Register prismjsPlugin in config-user/plugins.ts so language hints are tokenised at build time. * Scope the inline-code rule to :not(pre):not(.language-text) > code so the global #1f3f5b color and light-gray background only apply to inline <code>, not to <pre><code> inside .language-* blocks. * Set --code-bg-color: #2d2d2d (the project's original dark surface) and apply it to every language-* wrapper, with #ccc as the default text/punctuation color, matching the pre-Prism appearance. * Add a One-Dark-inspired Prism token palette scoped to div[class*="language-"] so bash/json/yaml/php blocks render with readable colors on the dark background. * Unify font-size: 12px across every language-* block so highlighted blocks no longer render larger than plain `text` blocks. * Re-tint the code-fade-mask gradient to the same #2d2d2d background so the right-edge fade blends with the block. * Scope the ELSSteps :deep(code) override to :not(pre) > code so block code inside steps uses the unified 12px size while inline code keeps the slightly smaller 0.85rem. * Indent the bullet sub-items under steps 1 and 2 in the AlmaLinux enterprise-support doc so they render inside the numbered list instead of after it. https://claude.ai/code/session_01RnQn6mjZMSy5kGjwJaWVeF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
@vuepress/plugin-prismjspackage shipped in package.json but was never registered, so fences with a language hint (bash,json,