fix: add filename label support for <code> blocks#178
Merged
CodexRaunak merged 1 commit intolayer5io:masterfrom Apr 8, 2026
Merged
fix: add filename label support for <code> blocks#178CodexRaunak merged 1 commit intolayer5io:masterfrom
CodexRaunak merged 1 commit intolayer5io:masterfrom
Conversation
4dbe439 to
e6e9cf8
Compare
- Extended filename label support beyond .highlight[filename] - Now works with plain <code filename='...'> blocks - Maintains consistent styling between both implementations - Fixes layer5io#177 Signed-off-by: Nathanael-FETUE <114958970+NathanaelFetue@users.noreply.github.com>
e6e9cf8 to
853d587
Compare
Contributor
|
@NathanaelFetue can you also provide a screenshot |
Contributor
Author
|
@CodexRaunak Here's a screenshot demonstrating both implementations: Test 1 - Existing
Test 2 - NEW
The CSS I added applies the same styling to code[filename]::before {
content: attr(filename);
// ... same styling properties
} |
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.

This PR follows up on #173 by extending the filename attribute support to plain
<code>blocks, ensuring UI consistency across all code display methods on the Academy platform.Changes
code[filename]selector.highlight[filename]blocksImplementation
Fixes #177
cc @CodexRaunak