Home

Site Layout CopyMarkdown Component

Copy page as Markdown button

Displays a button that copies the current page content as Markdown to the clipboard. Requires formats = ["md"] in site config (the default). The markdown is fetched from page.md which is generated during site build.

[site.layout.footer]
end = "copy-markdown"  # Default text: "Copy as Markdown"

# Custom text:
end = { type = "copy-markdown", text = "Copy as MD" }

# Icon only:
end = { type = "copy-markdown", style = "icon" }

text

Type: string (optional)

Custom button text

Default: "Copy as Markdown"

style

Type: CopyMarkdownStyle (optional)

Display style

Default: both

ValueDescription
iconClipboard icon only
textText only
bothIcon and text (default)

This documentation was generated from layout/components.rs by generate.rs.

© 2026 Stencila