Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 803 Bytes

MarkdownCollapsibleSection.md

File metadata and controls

32 lines (26 loc) · 803 Bytes

STRUCT

MarkdownCollapsibleSection

Collapsible blocks are a great way to hide large portions of content that, while valuable to the reader, would result on a lot of noise.

Collapsible blocks work well in most Markdown readers, including GitHub.com and rendered GitHub Pages. However, because they rely on HTML tags, they will make the raw markdown output harder to read.

<details><summary>Block Title</summary>

    Block details.

</details>

Properties

markdown

Generated Markdown output

Methods

init(summary:details:)

MarkdownCollapsibleSection initializer

  • Parameters:
    • summary: Plain text or HTML string containing the block title.
    • details: Markdown convertible elements to include in the collapsible block.