Encode and decode copy-to-clipboard functionality using base64#372
Conversation
|
The failed tests seem to be related to a recent update of timm, and shouldn't have anything to do with this PR. |
|
Can you give an example of markdown that fails with current code? |
Sure thing - sorry, I had mentioned to @mishig25 privately. |
|
if you add a newline between Edit ok, tested and it doesn't work: Trying with your branch Edit 2: Same error. PR: https://github.com/huggingface/huggingface.js/pull/192/files |
|
Ok after a few tries your fix worked! :) (github action cache...) Approving, leaving it up to @mishig25 to take at second look & merge next week |
There was a problem hiding this comment.
lgtm!
I've tested the build on transformers docs & everything is working as expected huggingface/transformers#23361
Therefore, merging the PR 🚀
(test is failing for unrelated reason to this PR)


Fixes issue where the code attribute for
copy-to-clipboardfunctionality is interpreted as valid Svelte code, which leads to SSR errors.