Files
QingLong/Doc/markmap-0.15.0/packages/markmap-lib/test/__snapshots__/index.test.ts.snap
2025-08-15 09:13:13 +08:00

264 lines
6.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`content with frontmatter 1`] = `
{
"content": "
- l1
- l1.1
- l1.2
- l1.2.1
",
"contentLineOffset": 4,
"features": {},
"frontmatter": {
"markmap": {
"color": [
"blue",
],
},
},
"root": {
"children": [
{
"children": [],
"content": "l1.1",
"depth": 1,
"payload": {
"lines": [
2,
3,
],
},
"type": "list_item",
},
{
"children": [
{
"children": [],
"content": "l1.2.1",
"depth": 2,
"payload": {
"lines": [
4,
5,
],
},
"type": "list_item",
},
],
"content": "l1.2",
"depth": 1,
"payload": {
"lines": [
3,
4,
],
},
"type": "list_item",
},
],
"content": "l1",
"depth": 0,
"payload": {
"lines": [
1,
2,
],
},
"type": "list_item",
},
}
`;
exports[`content with only katex enabled 1`] = `
{
"content": "
- $x = {-b pm sqrt{b^2-4ac} over 2a}$
",
"contentLineOffset": 4,
"features": {
"katex": true,
},
"frontmatter": {
"markmap": {
"color": [
"blue",
],
},
},
"root": {
"children": [],
"content": "<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi><mo>=</mo><mrow><mo></mo><mi>b</mi><mi>p</mi><mi>m</mi><mi>s</mi><mi>q</mi><mi>r</mi><mi>t</mi><mrow><msup><mi>b</mi><mn>2</mn></msup><mo></mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow><mi>o</mi><mi>v</mi><mi>e</mi><mi>r</mi><mn>2</mn><mi>a</mi></mrow></mrow><annotation encoding="application/x-tex">x = {-b pm sqrt{b^2-4ac} over 2a}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal">x</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:1.0085em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord"></span><span class="mord mathnormal">b</span><span class="mord mathnormal">p</span><span class="mord mathnormal">m</span><span class="mord mathnormal">s</span><span class="mord mathnormal" style="margin-right:0.03588em;">q</span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mord mathnormal">t</span><span class="mord"><span class="mord"><span class="mord mathnormal">b</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin"></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord">4</span><span class="mord mathnormal">a</span><span class="mord mathnormal">c</span></span><span class="mord mathnormal">o</span><span class="mord mathnormal" style="margin-right:0.03588em;">v</span><span class="mord mathnormal" style="margin-right:0.02778em;">er</span><span class="mord">2</span><span class="mord mathnormal">a</span></span></span></span></span>",
"depth": 0,
"payload": {
"lines": [
1,
2,
],
},
"type": "list_item",
},
}
`;
exports[`content with only katex enabled 2`] = `
{
"scripts": [
{
"data": {
"fn": [Function],
"getParams": [Function],
},
"type": "iife",
},
{
"data": {
"defer": true,
"src": "https://cdn.jsdelivr.net/npm/webfontloader@undefined/webfontloader.js",
},
"type": "script",
},
],
"styles": [
{
"data": {
"href": "https://cdn.jsdelivr.net/npm/katex@undefined/dist/katex.min.css",
},
"type": "stylesheet",
},
],
}
`;
exports[`content without frontmatter 1`] = `
{
"content": "- l1
- l1.1
- l1.2
- l1.2.1
",
"contentLineOffset": 0,
"features": {},
"root": {
"children": [
{
"children": [],
"content": "l1.1",
"depth": 1,
"payload": {
"lines": [
1,
2,
],
},
"type": "list_item",
},
{
"children": [
{
"children": [],
"content": "l1.2.1",
"depth": 2,
"payload": {
"lines": [
3,
4,
],
},
"type": "list_item",
},
],
"content": "l1.2",
"depth": 1,
"payload": {
"lines": [
2,
3,
],
},
"type": "list_item",
},
],
"content": "l1",
"depth": 0,
"payload": {
"lines": [
0,
1,
],
},
"type": "list_item",
},
}
`;
exports[`custom url provider 1`] = `
{
"scripts": [
{
"data": {
"fn": [Function],
"getParams": [Function],
},
"type": "iife",
},
{
"data": {
"defer": true,
"src": "/local/webfontloader@undefined/webfontloader.js",
},
"type": "script",
},
],
"styles": [
{
"data": {
"href": "/local/katex@undefined/dist/katex.min.css",
},
"type": "stylesheet",
},
{
"data": {
"href": "/local/highlight.js@undefined/styles/default.css",
},
"type": "stylesheet",
},
],
}
`;
exports[`plugins 1`] = `
{
"scripts": [
{
"data": {
"fn": [Function],
"getParams": [Function],
},
"type": "iife",
},
{
"data": {
"defer": true,
"src": "https://cdn.jsdelivr.net/npm/webfontloader@undefined/webfontloader.js",
},
"type": "script",
},
],
"styles": [
{
"data": {
"href": "https://cdn.jsdelivr.net/npm/katex@undefined/dist/katex.min.css",
},
"type": "stylesheet",
},
{
"data": {
"href": "https://cdn.jsdelivr.net/npm/highlight.js@undefined/styles/default.css",
},
"type": "stylesheet",
},
],
}
`;