feat(scripts): add an HTML tag-balance validator and a speaker-note confidentiality step#7
Open
Reebz wants to merge 1 commit into
Open
feat(scripts): add an HTML tag-balance validator and a speaker-note confidentiality step#7Reebz wants to merge 1 commit into
Reebz wants to merge 1 commit into
Conversation
|
@Reebz is attempting to deploy a commit to the bluedusk's projects Team on Vercel. A member of the Team first needs to authorize it. |
…onfidentiality step Two authoring gaps that surfaced shipping a real deck. A stdlib HTML tag-balance validator wired into the validate-and-save steps catches unbalanced markup before deploy, and a confidentiality step greps for identifiers and strips slide-notes from the deployed copy when they must not ship. Co-Authored-By: Leslie Barbara Knope (Claude Opus 4.8 (1M context)) <noreply@anthropic.com>
fb5b2bb to
543e118
Compare
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.
What
Two authoring gaps that surfaced shipping a real deck.
scripts/validate-html.py(added) is a stdlib-onlyhtml.parser.HTMLParsersubclass that tracks a stack of opened non-void tags and exits non-zero, naming the offending tag, on any unclosed or mismatched tag. No install step, matching the existingscripts/extract-pptx.pystyle. It is wired into the Step 5.5 validate-and-save flow and the after-any-modification block, listed as a ninth check inreferences/presentation-layer.md, and added to the supporting-files table. A test beside the script covers unclosed, mismatched, well-formed, and void-element cases.<script class="slide-notes">, so notes are readable by anyone with the URL. Phase 7A now grep-checks the file for client and project identifiers across visible text and the notes blocks, and when notes must not ship it deploys a stripped copy with every notes block removed while the original keeps notes for the presenter app.references/presentation-layer.mdgains a one-line warning that notes ship in the public artifact unless stripped.Test
divexits non-zero and names the tag.img,br, andinputdo not count as unclosed.Dependencies
Independent of the runtime and CSS PRs, so it can merge at any time.
Co-Authored-By: Leslie Barbara Knope (Claude Opus 4.8 (1M context)) noreply@anthropic.com