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

feat: copy to clipboard code snippet #1060

Merged
merged 8 commits into from
Oct 13, 2020
Prev Previous commit
Next Next commit
test(opy-to-clipboard): update snapshots
ISSUES CLOSED: y
  • Loading branch information
SanderElias committed Oct 13, 2020
commit 39df1908cb98d62964265497afc69628b946f431
193 changes: 94 additions & 99 deletions tests/jest/src/__tests__/__snapshots__/blog-index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,110 +72,105 @@ exports[`ContentFolder: Test blog/page-1 Check contentPlugin render 1`] = `
>
or, how to do interesting blog things
</h2>
<div class="scully-code-snippet"
style="position:relative"
<pre class="language-typescript"
=""
>
<pre class="language-typescript"
=""
<code class="language-typescript"
=""
>
<code class="language-typescript"
<span class="token builtin"
=""
>
<span class="token builtin"
=""
>
console
</span>
<span class="token punctuation"
=""
>
.
</span>
<span class="token function"
=""
>
log
</span>
<span class="token punctuation"
=""
>
(
</span>
<span class="token string"
=""
>
'hello world'
</span>
<span class="token punctuation"
=""
>
)
</span>
<span class="token punctuation"
=""
>
;
</span>
<span class="token builtin"
=""
>
console
</span>
<span class="token punctuation"
=""
>
.
</span>
<span class="token function"
=""
>
log
</span>
<span class="token punctuation"
=""
>
(
</span>
<span class="token string"
=""
>
'yah'
</span>
<span class="token punctuation"
=""
>
)
</span>
<span class="token punctuation"
=""
>
;
</span>
<span class="token keyword"
=""
>
const
</span>
x
<span class="token operator"
=""
>
=
</span>
<span class="token number"
=""
>
123
</span>
<span class="token punctuation"
=""
>
;
</span>
</code>
</pre>
</div>
console
</span>
<span class="token punctuation"
=""
>
.
</span>
<span class="token function"
=""
>
log
</span>
<span class="token punctuation"
=""
>
(
</span>
<span class="token string"
=""
>
'hello world'
</span>
<span class="token punctuation"
=""
>
)
</span>
<span class="token punctuation"
=""
>
;
</span>
<span class="token builtin"
=""
>
console
</span>
<span class="token punctuation"
=""
>
.
</span>
<span class="token function"
=""
>
log
</span>
<span class="token punctuation"
=""
>
(
</span>
<span class="token string"
=""
>
'yah'
</span>
<span class="token punctuation"
=""
>
)
</span>
<span class="token punctuation"
=""
>
;
</span>
<span class="token keyword"
=""
>
const
</span>
x
<span class="token operator"
=""
>
=
</span>
<span class="token number"
=""
>
123
</span>
<span class="token punctuation"
=""
>
;
</span>
</code>
</pre>
<p ="">
Hello Dolly?
</p>
Expand Down