Skip to content

feat: add markdown code block copy button#324

Merged
a-ghorbani merged 4 commits into
a-ghorbani:mainfrom
ArkaneFans:feat/add-code-copy-button
Jun 9, 2025
Merged

feat: add markdown code block copy button#324
a-ghorbani merged 4 commits into
a-ghorbani:mainfrom
ArkaneFans:feat/add-code-copy-button

Conversation

@ArkaneFans
Copy link
Copy Markdown
Contributor

Description

Fixes #313
This PR adds a header to the code block in MarkDownView, which includes the code block language display and a copy button for the code block text. Below is its display under two themes.
Screenshot_20250601_113140
Screenshot_20250601_113248

I don't have any ios devices, so I can't test it. Please let me know if there are any issues

Platform Affected

  • iOS
  • Android

Checklist

  • Necessary comments have been made.
  • I have tested this change on:
    • iOS Simulator/Device
    • Android Emulator/Device
  • Unit tests and integration tests pass locally.

@a-ghorbani
Copy link
Copy Markdown
Owner

Thanks for the contribution! 🙌

@a-ghorbani a-ghorbani merged commit d899011 into a-ghorbani:main Jun 9, 2025
3 checks passed
tjipenk added a commit to tjipenk/pocketpal-ai that referenced this pull request Jun 10, 2025
feat: add markdown code block copy button (a-ghorbani#324)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: Please add code copying

2 participants