feat(html): add copy unfolded button for RFC 8792 folded blocks - #1322
Open
panva wants to merge 1 commit into
Open
feat(html): add copy unfolded button for RFC 8792 folded blocks#1322panva wants to merge 1 commit into
panva wants to merge 1 commit into
Conversation
panva
marked this pull request as draft
May 14, 2026 09:54
Detect RFC 8792 folded blocks in the v3 HTML renderer and add a hover/focus copy control that copies the block text unfolded. Signed-off-by: Filip Skokan <panva.ip@gmail.com>
panva
force-pushed
the
feat-add-copy-unfolded
branch
from
May 14, 2026 09:55
b8dd843 to
7c61e26
Compare
panva
marked this pull request as ready for review
May 14, 2026 10:06
|
✅ |
Member
|
@panva, Your PR proposes changes to one of the published formats of the RFCs. I'll add this to next RPAT meeting to discuss how to proceed with this. The new revamped www.rfc-editor.org has a different HTML presentation of RFCs. For example: https://www.rfc-editor.org/info/rfc8792/ May be this change is better suited for the new RFC editor website? New RFC editor repository is https://github.com/ietf-tools/red/ |
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.
Detect RFC 8792 folded blocks in the v3 HTML renderer and add a hover/focus copy control that copies the block text unfolded.
This makes RFC 8792-folded examples usable directly from HTML RFCs: readers can copy the original unfolded source without needing to know or manually apply the folding rules.
Note that I am in no way shape or form a frontend stylesheet proficient, nor knowledgeable of aria-* accessibility attributes. The style, text, and attributes need some bashing and I'm happy to accomodate any requested changes.