Any way to add "copy to clipboard" button to code blocks? #361
-
Just this. When rendering markdown there may be code blocks and I'd like to add a "copy to clipboard" button to each code block. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
gonzalezreal
Nov 14, 2024
Replies: 1 comment
-
Hi @duncsand, The Demo app shows how to do this: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gonzalezreal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @duncsand,
The Demo app shows how to do this:
swift-markdown-ui/Examples/Demo/Demo/CodeSyntaxHighlightView.swift
Line 5 in a9c7615