Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No copy codeblock for non-prism highlighting #105

Closed
2 tasks done
qjcg opened this issue Oct 3, 2023 · 4 comments
Closed
2 tasks done

No copy codeblock for non-prism highlighting #105

qjcg opened this issue Oct 3, 2023 · 4 comments

Comments

@qjcg
Copy link

qjcg commented Oct 3, 2023

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for support

Describe the bug

With params.docs.prism = false set in hugo.toml, no copy codeblock button is present on code blocks.

Expected behavior

A copy codeblock button is present on code blocks when prism = false.

Screenshots

No response

Environment

- OS:
- Browser:
- Browser Version:
@colinwilson
Copy link
Owner

colinwilson commented Oct 3, 2023

Yep.

With params.docs.prism = false the theme reverts to Hugo's default syntax highlighter Chroma, which doesn't feature a copy button.

However, there is a way to implement this. Make a feature request in the discussions section of the repo. I track all feature request there.

@qjcg
Copy link
Author

qjcg commented Oct 4, 2023

Thanks for the quick reply, copy that and will do!

@qjcg
Copy link
Author

qjcg commented Oct 4, 2023

Created the feature request here:

#106

@colinwilson
Copy link
Owner

Created the feature request here:

Excellent. Thanks 👍

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

No branches or pull requests

2 participants