Description
GitHub's flavor of Markdown includes a pair of tags, <details> and <summary>, which allow creation of collapsible / expandable sections of a document see documentation.
StructuredText, when given Markdown containing these blocks, does not render the summary with a disclosure widget (see documentation referenced above). Instead, it renders the tag literals. This is a graceful failure, as it does mean that the collapsible content is still rendered, but it is a sub-optimal result.
Checklist
Expected behavior
Given a Markdown sample:
# Some Header
<details>
<summary>This gets big</summary>
Lots of text appears here
</details>
... one expects a StructuredText(markdown: sampleMarkdown).textual.structuredTextStyle(.gitHub) to render the sample as GitHub does:
Some Header
This gets big
Lots of text appears here
Actual behavior
What currently gets rendered is the text but the section blocks are rendered as tags:
Some Header
<details>
<summary>This gets big</summary>
Lots of text appears here
</details>
Steps to reproduce
sample_repro.tgz
Textual version information
0.3.1
Destination operating system
macOS 26.3
Xcode version information
Version 26.3 (17C529)
Swift Compiler version information
swift-driver version: 1.127.15 Apple Swift version 6.2.4 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
Target: arm64-apple-macosx26.0
Description
GitHub's flavor of Markdown includes a pair of tags,
<details>and<summary>, which allow creation of collapsible / expandable sections of a document see documentation.StructuredText, when given Markdown containing these blocks, does not render the summary with a disclosure widget (see documentation referenced above). Instead, it renders the tag literals. This is a graceful failure, as it does mean that the collapsible content is still rendered, but it is a sub-optimal result.Checklist
mainbranch of this package.Expected behavior
Given a Markdown sample:
... one expects a
StructuredText(markdown: sampleMarkdown).textual.structuredTextStyle(.gitHub)to render the sample as GitHub does:Some Header
This gets big
Lots of text appears hereActual behavior
What currently gets rendered is the text but the section blocks are rendered as tags:
Some Header
<details>
<summary>This gets big</summary>
Lots of text appears here
</details>
Steps to reproduce
sample_repro.tgz
Textual version information
0.3.1
Destination operating system
macOS 26.3
Xcode version information
Version 26.3 (17C529)
Swift Compiler version information