Skip to content

feat(html): add copy unfolded button for RFC 8792 folded blocks - #1322

Open
panva wants to merge 1 commit into
ietf-tools:mainfrom
panva:feat-add-copy-unfolded
Open

feat(html): add copy unfolded button for RFC 8792 folded blocks#1322
panva wants to merge 1 commit into
ietf-tools:mainfrom
panva:feat-add-copy-unfolded

Conversation

@panva

@panva panva commented May 14, 2026

Copy link
Copy Markdown

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.

rfc8792-sourcecode-hover rfc8792-sourcecode-copied

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.

@panva
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
panva force-pushed the feat-add-copy-unfolded branch from b8dd843 to 7c61e26 Compare May 14, 2026 09:55
@panva
panva marked this pull request as ready for review May 14, 2026 10:06
@bc-pi

bc-pi commented May 16, 2026

Copy link
Copy Markdown

@kesara

kesara commented Jun 3, 2026

Copy link
Copy Markdown
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/

@kesara kesara added the rpat Issues needing attention from RFC Production Advisory Team label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rpat Issues needing attention from RFC Production Advisory Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants