Skip to content

socket-based-debugger.md: unwrap HTMLBlock for tables with doc: links#45

Merged
jduval23 merged 1 commit into
rokudev:v2.0from
chrisdp:unwrap-debugger-tables
May 18, 2026
Merged

socket-based-debugger.md: unwrap HTMLBlock for tables with doc: links#45
jduval23 merged 1 commit into
rokudev:v2.0from
chrisdp:unwrap-debugger-tables

Conversation

@chrisdp
Copy link
Copy Markdown
Contributor

@chrisdp chrisdp commented May 15, 2026

Summary

Four tables on the BrightScript debug protocol page wrap their HTML in a JSX <HTMLBlock>{...}</HTMLBlock> template literal. ReadMe doesn't run its markdown processor inside HTMLBlock, so the 11 [Roku OS X.Y](doc:release-notes#...) and [Debugging Commands](#debugging-commands) references inside those cells were rendering literally.

The reported example was the Roku OS ↔ debug-protocol-version compatibility matrix in the handshake-fields table, where every Roku OS entry showed as raw bracket-and-parens text instead of a link.

Changes

  • Drop the <HTMLBlock>{ / \}` wrappers around four tables (handshake fields, Debugger Request Format, Debugger Response Format, DebuggerUpdate fields).
  • Fix <br><br /> so MDX doesn't reject the now-bare HTML.
  • Escape \[1970-01-01T00:00:00.000Z] so MDX doesn't try to read it as a reference-style link.
  • Indent the four tables by nesting depth (source had them flush-left).
  • For the cells that embed a nested matrix table, break the cell open onto its own line so the nested <table> sits at a reasonable indent level.

The other 16 HTMLBlock tables on the page contain no markdown link syntax, so they render correctly today and are left alone.

The handshake fields, debugger request/response, and DebuggerUpdate
tables were wrapped in JSX <HTMLBlock>{`...`}</HTMLBlock> template
literals. ReadMe's markdown processor doesn't run inside HTMLBlock, so
the 11 [Roku OS X.Y](doc:release-notes#...) and `[Debugging Commands](#...)`
references in those cells rendered literally.

Drop the wrappers, fix <br> to <br /> for MDX, escape the bracketed
\[1970-01-01T00:00:00.000Z] timestamp so MDX doesn't read it as a
reference-style link, and indent each table by nesting depth (the
source had everything flush-left). For the cells that contain a
nested compatibility-matrix table, break the cell open onto its own
line so the nested <table> sits at a reasonable depth.

The other 16 HTMLBlock tables on the page had no markdown link syntax
inside, so they render correctly today and are left alone.
@jduval23 jduval23 merged commit 6ccf0ec into rokudev:v2.0 May 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants