Skip to content

Fix rendering of the build options table in BuildOptions.md - #14323

Open
koppor wants to merge 1 commit into
oracle:masterfrom
koppor:fix-build-options-table
Open

Fix rendering of the build options table in BuildOptions.md#14323
koppor wants to merge 1 commit into
oracle:masterfrom
koppor:fix-build-options-table

Conversation

@koppor

@koppor koppor commented Aug 27, 2026

Copy link
Copy Markdown

The build options table on https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/ is currently rendered as a single paragraph of raw |-separated text instead of a table (the --------- separator row even shows up as em-dashes).

Cause

kramdown, the Markdown parser used by the GraalVM website, only recognizes a table that starts after a block boundary (after_block_boundary? in kramdown's table parser). In BuildOptions.md, the table directly follows the <!-- BEGIN: build-options-table --> HTML comment without a blank line, so kramdown treats the whole table as a paragraph.

Verified locally with kramdown 2.5.2 (both the default and the GFM parser): the current file yields one <table> on the page (the system properties table), the fixed file yields two.

Fix

  • docs/reference-manual/native-image/BuildOptions.md: add a blank line after the BEGIN marker and before the END marker.
  • substratevm/mx.substratevm/mx_substratevm_docs.py: make mx update-build-options-table emit those blank lines so that regenerating the table does not reintroduce the problem. verify_build_options_table strips the content between the markers before comparing, so the check is unaffected.

馃 Generated with Claude Code

https://claude.ai/code/session_01QCkkfwM4p6DgUYzCXio6dj

The table between the `<!-- BEGIN: build-options-table -->` and
`<!-- END: build-options-table -->` markers was rendered as a plain
paragraph on graalvm.org (see
https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/).

kramdown, the Markdown parser used by the website, only recognizes a
table that starts after a block boundary. Since the table directly
followed the HTML comment marker without a blank line in between, the
whole table was parsed as one paragraph.

Add blank lines between the markers and the table, and make
`mx update-build-options-table` emit them so that regenerating the table
does not reintroduce the problem. The verification in
`verify_build_options_table` strips the extracted content, so it is not
affected by the additional blank lines.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QCkkfwM4p6DgUYzCXio6dj
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant