perf(plugin-shiki): lazy load languages #2483
Annotations
7 errors and 2 warnings
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L234
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers / :no-line-numbers > should work properly if `lineNumbers` is enabled by default 1` mismatched
- Expected
+ Received
@@ -4,30 +4,30 @@
</div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
<span class="line"></span>
<span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
<span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
<span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const foo = 'foo'</span></span>
+ <span class="line"><span></span></span>
+ <span class="line"><span>function bar () {</span></span>
+ <span class="line"><span> return 1024</span></span>
- <span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
+ <span class="line"><span>}</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-numb
|
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L242
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers / :no-line-numbers > should work properly if `lineNumbers` is disabled by default 1` mismatched
- Expected
+ Received
@@ -4,30 +4,30 @@
</div><div class="language-ts" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
<span class="line"></span>
<span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
<span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
<span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
- </div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ </div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const foo = 'foo'</span></span>
+ <span class="line"><span></span></span>
+ <span class="line"><span>function bar () {</span></span>
+ <span class="line"><span> return 1024</span></span>
- <span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
+ <span class="line"><span>}</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const foo = 'foo'</span></span>
+ <span class="line"><span></span></span>
+ <span class="line"><span>function bar () {</span></span>
+ <span class="line"><span> return 1024</span></span>
- <span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
+ <span class="line
|
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L250
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers / :no-line-numbers > should work properly if `lineNumbers` is set to a number by default 1` mismatched
- Expected
+ Received
@@ -4,30 +4,30 @@
</div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
<span class="line"></span>
<span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
<span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
<span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const foo = 'foo'</span></span>
+ <span class="line"><span></span></span>
+ <span class="line"><span>function bar () {</span></span>
+ <span class="line"><span> return 1024</span></span>
- <span class="line"><span style="color:#ECEFF4">}</span></span></code></pre>
+ <span class="line"><span>}</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> foo</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">foo</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"></span>
- <span class="line"><span style="color:#81A1C1">function</span><span style="color:#88C0D0"> bar</span><span style="color:#ECEFF4"> ()</span><span style="color:#ECEFF4"> {</span></span>
- <span class="line"><span style="color:#81A1C1"> return</span><span style="color:#B48EAD"> 1024</span></span>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="l
|
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L277
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers=number > should work properly if `lineNumbers` is enabled by default 1` mismatched
- Expected
+ Received
- "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line2</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 2</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line4</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 4</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line5</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 5</span><span style="color:#ECEFF4">'</span></span></code></pre>
+ "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line2 = 'line 2'</span></span>
+ <span class="line"><span>const line3 = 'line 3'</span></span></code></pre>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line3 = 'line 3'</span></span>
+ <span class="line highlighted"><span>const line4 = 'line 4'</span></span>
+ <span class="line highlighted"><span>const line5 = 'line 5'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 2"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="config/foo.ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line10</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 10</span><span style="color:#ECEFF4">'</span></span>
<span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line11</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 11</span><span style="color:#ECEFF4">'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 9"><div class="line-number"></div><div class="line-number"></div></div></div>"
❯ plugins/markdown/plugin-shiki/tests/shiki-p
|
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L285
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers=number > should work properly if `lineNumbers` is disabled by default 1` mismatched
- Expected
+ Received
- "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line2</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 2</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line4</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 4</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line5</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 5</span><span style="color:#ECEFF4">'</span></span></code></pre>
+ "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line2 = 'line 2'</span></span>
+ <span class="line"><span>const line3 = 'line 3'</span></span></code></pre>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line3 = 'line 3'</span></span>
+ <span class="line highlighted"><span>const line4 = 'line 4'</span></span>
+ <span class="line highlighted"><span>const line5 = 'line 5'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 2"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="config/foo.ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line10</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 10</span><span style="color:#ECEFF4">'</span></span>
<span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line11</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 11</span><span style="color:#ECEFF4">'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 9"><div class="line-number"></div><div class="line-number"></div></div></div>"
❯ plugins/markdown/plugin-shiki/tests/shiki-
|
Unit Test:
plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts#L293
Error: Snapshot `@vuepress/plugin-shiki > fence preWrapper > :line-numbers=number > should work properly if `lineNumbers` is set to a number by default 1` mismatched
- Expected
+ Received
- "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line2</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 2</span><span style="color:#ECEFF4">'</span></span>
- <span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span></code></pre>
- <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line3</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 3</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line4</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 4</span><span style="color:#ECEFF4">'</span></span>
- <span class="line highlighted"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line5</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 5</span><span style="color:#ECEFF4">'</span></span></code></pre>
+ "<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line2 = 'line 2'</span></span>
+ <span class="line"><span>const line3 = 'line 3'</span></span></code></pre>
+ <div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 1"><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span>const line3 = 'line 3'</span></span>
+ <span class="line highlighted"><span>const line4 = 'line 4'</span></span>
+ <span class="line highlighted"><span>const line5 = 'line 5'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 2"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" data-title="config/foo.ts" style="background-color:#2e3440ff;color:#d8dee9ff"><pre class="shiki nord vp-code"><code><span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line10</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 10</span><span style="color:#ECEFF4">'</span></span>
<span class="line"><span style="color:#81A1C1">const</span><span style="color:#D8DEE9"> line11</span><span style="color:#81A1C1"> =</span><span style="color:#ECEFF4"> '</span><span style="color:#A3BE8C">line 11</span><span style="color:#ECEFF4">'</span></span></code></pre>
<div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 9"><div class="line-number"></div><div class="line-number"></div></div></div>"
❯ plugins/markdown/plugin-shiki/tests
|
Unit Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Linter Test:
plugins/markdown/plugin-shiki/src/node/markdown/highlighter/createShikiHighlighter.ts#L51
Unexpected console statement
|
Loading