Skip to content

Commit 5002988

Browse files
committed
test(markdown): update snapshots
1 parent d938852 commit 5002988

File tree

1 file changed

+72
-10
lines changed

1 file changed

+72
-10
lines changed

packages/@vuepress/markdown/__tests__/plugins/__snapshots__/codePlugin.spec.ts.snap

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -716,15 +716,23 @@ const baz = () => {
716716
exports[`@vuepress/markdown > plugins > codePlugin plugin options should disable \`vPre.inline\` 1`] = `
717717
<div class="language-text ext-text line-numbers-mode"><pre v-pre class="language-text"><code>Raw text
718718
</code></pre>
719-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div>
719+
<div class="line-numbers" aria-hidden="true">
720+
<div class="line-number"></div>
721+
</div>
720722
</div>
721723
<div class="language-typescript ext-ts line-numbers-mode"><pre v-pre class="language-typescript"><code>const foo = 'foo'
722724
723725
function bar () {
724726
return 1024
725727
}
726728
</code></pre>
727-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div>
729+
<div class="line-numbers" aria-hidden="true">
730+
<div class="line-number"></div>
731+
<div class="line-number"></div>
732+
<div class="line-number"></div>
733+
<div class="line-number"></div>
734+
<div class="line-number"></div>
735+
</div>
728736
</div>
729737
<div class="language-typescript ext-ts line-numbers-mode"><pre v-pre class="language-typescript"><code>const foo = 'foo'
730738
@@ -736,7 +744,13 @@ function bar () {
736744
<div class="highlight-line">&nbsp;</div>
737745
<div class="highlight-line">&nbsp;</div><br><br><br>
738746
</div>
739-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div>
747+
<div class="line-numbers" aria-hidden="true">
748+
<div class="line-number"></div>
749+
<div class="line-number"></div>
750+
<div class="line-number"></div>
751+
<div class="line-number"></div>
752+
<div class="line-number"></div>
753+
</div>
740754
</div>
741755
<div class="language-typescript ext-ts line-numbers-mode"><pre v-pre class="language-typescript"><code>const foo = 'foo'
742756
@@ -755,23 +769,41 @@ const baz = () =&gt; {
755769
<div class="highlight-line">&nbsp;</div>
756770
<div class="highlight-line">&nbsp;</div><br><br><br><br>
757771
</div>
758-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div>
772+
<div class="line-numbers" aria-hidden="true">
773+
<div class="line-number"></div>
774+
<div class="line-number"></div>
775+
<div class="line-number"></div>
776+
<div class="line-number"></div>
777+
<div class="line-number"></div>
778+
<div class="line-number"></div>
779+
<div class="line-number"></div>
780+
<div class="line-number"></div>
781+
<div class="line-number"></div>
782+
</div>
759783
</div>
760784
<p><code>{{ inlineCode }}</code></p>
761785
`;
762786
763787
exports[`@vuepress/markdown > plugins > codePlugin plugin options should disable \`vPre.inline\` and \`vPre.block\` 1`] = `
764788
<div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>Raw text
765789
</code></pre>
766-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div>
790+
<div class="line-numbers" aria-hidden="true">
791+
<div class="line-number"></div>
792+
</div>
767793
</div>
768794
<div class="language-typescript ext-ts line-numbers-mode"><pre class="language-typescript"><code>const foo = 'foo'
769795
770796
function bar () {
771797
return 1024
772798
}
773799
</code></pre>
774-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div>
800+
<div class="line-numbers" aria-hidden="true">
801+
<div class="line-number"></div>
802+
<div class="line-number"></div>
803+
<div class="line-number"></div>
804+
<div class="line-number"></div>
805+
<div class="line-number"></div>
806+
</div>
775807
</div>
776808
<div class="language-typescript ext-ts line-numbers-mode"><pre class="language-typescript"><code>const foo = 'foo'
777809
@@ -783,7 +815,13 @@ function bar () {
783815
<div class="highlight-line">&nbsp;</div>
784816
<div class="highlight-line">&nbsp;</div><br><br><br>
785817
</div>
786-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div>
818+
<div class="line-numbers" aria-hidden="true">
819+
<div class="line-number"></div>
820+
<div class="line-number"></div>
821+
<div class="line-number"></div>
822+
<div class="line-number"></div>
823+
<div class="line-number"></div>
824+
</div>
787825
</div>
788826
<div class="language-typescript ext-ts line-numbers-mode"><pre class="language-typescript"><code>const foo = 'foo'
789827
@@ -802,7 +840,17 @@ const baz = () =&gt; {
802840
<div class="highlight-line">&nbsp;</div>
803841
<div class="highlight-line">&nbsp;</div><br><br><br><br>
804842
</div>
805-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div>
843+
<div class="line-numbers" aria-hidden="true">
844+
<div class="line-number"></div>
845+
<div class="line-number"></div>
846+
<div class="line-number"></div>
847+
<div class="line-number"></div>
848+
<div class="line-number"></div>
849+
<div class="line-number"></div>
850+
<div class="line-number"></div>
851+
<div class="line-number"></div>
852+
<div class="line-number"></div>
853+
</div>
806854
</div>
807855
<p><code>{{ inlineCode }}</code></p>
808856
`;
@@ -988,7 +1036,14 @@ function bar (): number {
9881036
const msg = 'hello world';
9891037
</script>
9901038
, lang: vue-html</code></pre>
991-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div>
1039+
<div class="line-numbers" aria-hidden="true">
1040+
<div class="line-number"></div>
1041+
<div class="line-number"></div>
1042+
<div class="line-number"></div>
1043+
<div class="line-number"></div>
1044+
<div class="line-number"></div>
1045+
<div class="line-number"></div>
1046+
</div>
9921047
</div>
9931048
`;
9941049
@@ -1034,6 +1089,13 @@ function bar (): number {
10341089
const msg = 'hello world';
10351090
</script>
10361091
, lang: vue-html</code></pre>
1037-
<div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div>
1092+
<div class="line-numbers" aria-hidden="true">
1093+
<div class="line-number"></div>
1094+
<div class="line-number"></div>
1095+
<div class="line-number"></div>
1096+
<div class="line-number"></div>
1097+
<div class="line-number"></div>
1098+
<div class="line-number"></div>
1099+
</div>
10381100
</div>
10391101
`;

0 commit comments

Comments
 (0)