new strategies #161
Annotations
8 errors
Test:
packages/rehype-code-hook-img/test/index.test.ts#L23
Error: Snapshot `strategy > undefined 1` mismatched
Expected: "<figure class="beoe test"><svg>light</svg></figure>"
Received: "<figure class="beoe test"><img src="data:image/svg+xml,%3csvg%3elight%3c/svg%3e" width="1" height="2"></figure>"
❯ example packages/rehype-code-hook-img/test/index.test.ts:23:3
❯ packages/rehype-code-hook-img/test/index.test.ts:49:7
|
Test:
packages/rehype-code-hook-img/test/index.test.ts#L23
Error: Snapshot `strategy > inline 1` mismatched
Expected: "<figure class="beoe test"><svg>light</svg></figure>"
Received: "<figure class="beoe test"><img src="data:image/svg+xml,%3csvg%3elight%3c/svg%3e" width="1" height="2"></figure>"
❯ example packages/rehype-code-hook-img/test/index.test.ts:23:3
❯ packages/rehype-code-hook-img/test/index.test.ts:49:7
|
Test:
packages/rehype-code-hook-img/test/index.test.ts#L23
Error: Snapshot `class > can pass class 1` mismatched
Expected: "<figure class="beoe test x y"><svg>light</svg></figure>"
Received: "<figure class="beoe test x y"><img src="data:image/svg+xml,%3csvg%3elight%3c/svg%3e" width="1" height="2"></figure>"
❯ example packages/rehype-code-hook-img/test/index.test.ts:23:3
❯ packages/rehype-code-hook-img/test/index.test.ts:70:5
|
Test:
packages/rehype-d2/test/index.test.ts#L18
Error: Snapshot `renders diagram 1` mismatched
Expected: "<figure class="beoe d2"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 256 434"><svg id="d2-svg" class="d2-1843626214" viewBox="-101 -101 256 434"><rect width="256" height="434" x="-101" y="-101" stroke-width="0" rx="0" style="fill:#fff"></rect><style>.d2-1843626214 .text-bold{font-family:"d2-1843626214-font-bold"}@font-face{font-family:d2-1843626214-font-bold;src:url(data:application/font-woff;base64,d09GRgABAAAAAAZwAAoAAAAACywAAguFAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAGAAAABgXxHXrmNtYXAAAAFUAAAAMgAAADIADQC0Z2x5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FcYa9+bniLB/UTw9u061uGqzyp/Wm4RlibG67zea1n+CPeVn8z/ID96k+GH7JbbRv+mGfVHcOfbDv+Mvwp+7xd4Aq84FfDFXbJDG+xw4+Gt3mExaxUeUTTcI3P2DNcZw/oM6EgZkLCCMeQCSOumBGR4xMxY8KQiBBHhxYxhb4mBEKO0X9+DfApmBEo4pgCR4xPTEDO2CL+Iq+Uc2Uc6jSzuxYFYwIu5HFJQIIjZURKQsSl4hQUZLyiQYOcgfhmFOR45EyI8UiZMaJBlzan9BkzIcfRVqSSmU/KkIJrAuV3ZlF2ZkBEQm6srkgIxdOJXyTvDqc4umSyXY98uhHhSxzfybvklsr2Kzz9ujVmm3mXbALm6mesrsS6udYEx7ot87b4VrjgFe5e/dlk8v4ehfpfKPIFV5p/qEklYpLg3C4tfCnId49xHOncwVdHvqdDnxO6vKGvc4sePVqc0afDa/l26eH4mi5nHMujI7y4a0sxZ/yA4xs6siljR9afxcQifiYzdefiOFMdUzL1vGTuqdZIFd59wuUOpRvqyOUz0B6Vlk7zS7RnASNTRSaGU/VyqY3c+heaIqaqpZzt7X25DXPbveUW35Bqh0u1LjiVk1swet9UvXc0c60fj4CQlAtZDEiZ0qDgRrzPCbgixnGs7p1oSwpaK58yz41UEjEVgw6J4szI9Dcw3fjGfbChe2dvSSj/kunlqqr7ZHHq1e2M3qh7yzvfuhytTaBhU03X1DQQ18S0H2mn1vn78s31uqU85YiUmPBfL8AzPJrsc8AhY2UY6GZur0NTL0STlxyq+ksiWQ2l58giHODxnAMOeMnzd/q4ZOKMi1txWc/d4pgjuhx+UBUL+y5HvF59+/+sv4tpU7U4nq5OL+49xSd3UOsX2rPb97KniZWTmFu02604I2BacnG76zW5x3j/AAAA//8BAAD///S3T1F4nGJgZgCD/+cYjBiwAAAAAAD//wEAAP//LwECAwAAAA==)}.connection,.shape{stroke-linejoin:round}.shape{shape-rendering:geometricPrecision}.connection{stroke-linecap:round}.d2-1843626214 .fill-N1{fill:#0a0f25}.d2-1843626214 .fill-B6{fill:#f7f8fe}.d2-1843626214 .stroke-B1{stroke:#0d32b2}</style><g id="x"><g class="shape"><path fill="#F7F8FE" stroke="#0D32B2" d="M1 0h53v66H1z" class="stroke-B1 fill-B6" style="stroke-width:2"></path></g><text x="27.5" y="38.5" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">x</text></g><g id="y"><g class="shape"><path fill="#F7F8FE" stroke="#0D32B2" d="M0 166h54v66H0z" class="stroke-B1 fill-B6" style="stroke-width:2"></path></g><text x="27" y="204.5" fill="#0A0F25" class="text-bold fill-N1" style="text-anchor:middle;font-size:16px">y</text></g><g id="(x -> y)[0]"><marker id="mk-3488378134" markerHeight="12" markerUnits="userSpaceOnUse" markerWidth="10" orient="auto" refX="7" refY="6" viewBox="0 0 10 12"><path stroke-width="2" d="m0 0 10 6-10 6z" class="connection" style="fill:#0d32b2"></path></marker><path fill="none" stroke="#0D32B2" marker-end="url(#mk-3488378134)" d="M27 68v94" class="connection stroke-B1" mask="url(#d2-1843626214)" style="stroke-width:2"></path></g><mask id="d2-1843626214" width="256" height="434" x="-101" y="-101" maskUnits="userSpaceOnUse"><path fill="#fff" d="M-101-101h256v434h-256z"></path><path fill="rgba(0,0,0,0.75)" d="M23.5 22.
|
Test:
packages/rehype-gnuplot/test/index.test.ts#L18
Error: Snapshot `renders diagram 1` mismatched
Expected: "<figure class="beoe gnuplot"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 500"><desc>Produced by GNUPLOT 5.4 patchlevel 0</desc><path fill="#fff" d="M0 0h1000v500H0z"></path><defs><path id="d" stroke="currentColor" stroke-width=".222" d="M-1-1h2v2h-2z"></path><path id="b" stroke="currentColor" stroke-width=".222" d="m0-1.33-1.33 2h2.66z"></path><path id="f" stroke="currentColor" stroke-width=".222" d="M0 1.33 1.265.411.782-1.067l-1.564-.009-.483 1.487z"></path><use xlink:href="#b" id="c" stroke="currentColor" transform="rotate(180)"></use><use xlink:href="#d" id="e" stroke="currentColor" transform="rotate(45)"></use><circle id="a" cx="0" cy="0" r="1" stroke="currentColor" stroke-width=".222"></circle></defs><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 464h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 467.9)"><tspan>-1</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 419.4h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 423.3)"><tspan>-0.8</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 374.8h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 378.7)"><tspan>-0.6</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 330.2h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 334.1)"><tspan>-0.4</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 285.6h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 289.5)"><tspan>-0.2</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 241h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 244.9)"><tspan> 0</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 196.5h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 200.4)"><tspan> 0.2</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 151.9h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 155.8)"><tspan> 0.4</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 107.3h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 111.2)"><tspan> 0.6</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 62.7h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 66.6)"><tspan> 0.8</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 18.1h9m912.1 0h-9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="end" transform="translate(45.6 22)"><tspan> 1</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M53.9 464v-9m0-436.9v9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="middle" transform="translate(53.9 485.9)"><tspan>-10</tspan></text></g><g fill="none" stroke="currentColor" color="#000"><path stroke="#000" d="M284.2 464v-9m0-436.9v9"></path><text fill="#000" stroke="none" font-family="Arial" font-size="12" text-anchor="middle" transform="translate(284.2
|
Test:
packages/rehype-graphviz/test/index.test.ts#L18
Error: Snapshot `renders diagram 1` mismatched
Expected: "<figure class="beoe graphviz"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 79.41 116"><g class="graph" transform="translate(4 112)"><path fill="#fff" d="M-4 4v-116h79.41V4z"></path><g class="node"><ellipse cx="35.71" cy="-90" fill="none" stroke="#000" rx="32.49" ry="18"></ellipse><text x="35.71" y="-85.8" font-family="Times,serif" font-size="14" text-anchor="middle">Hello</text></g><g class="node"><ellipse cx="35.71" cy="-18" fill="none" stroke="#000" rx="35.71" ry="18"></ellipse><text x="35.71" y="-13.8" font-family="Times,serif" font-size="14" text-anchor="middle">World</text></g><g class="edge"><path fill="none" stroke="#000" d="M35.71-71.7v24.16"></path><path stroke="#000" d="m39.21-47.62-3.5 10-3.5-10z"></path></g></g></svg></figure>"
Received: "<figure class="beoe graphviz"><img src="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='79pt' height='116pt' viewBox='0 0 79.41 116'%3e%3cg class='graph' transform='translate(4 112)'%3e%3cpath fill='white' d='M-4 4v-116h79.41V4z'/%3e%3cg class='node'%3e%3cellipse cx='35.71' cy='-90' fill='none' stroke='black' rx='32.49' ry='18'/%3e%3ctext x='35.71' y='-85.8' font-family='Times%2cserif' font-size='14' text-anchor='middle'%3eHello%3c/text%3e%3c/g%3e%3cg class='node'%3e%3cellipse cx='35.71' cy='-18' fill='none' stroke='black' rx='35.71' ry='18'/%3e%3ctext x='35.71' y='-13.8' font-family='Times%2cserif' font-size='14' text-anchor='middle'%3eWorld%3c/text%3e%3c/g%3e%3cg class='edge'%3e%3cpath fill='none' stroke='black' d='M35.71-71.7v24.16'/%3e%3cpath stroke='black' d='m39.21-47.62-3.5 10-3.5-10z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e" width="79" height="116"></figure>"
❯ packages/rehype-graphviz/test/index.test.ts:18:3
|
Test:
packages/rehype-vizdom/test/index.test.ts#L18
Error: Snapshot `renders diagram 1` mismatched
Expected: "<figure class="beoe vizdom"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 99.51 170.72"><g class="graph"><a><path fill="transparent" stroke="transparent" d="M0 0h99.51v170.72H0z"></path></a></g><g class="edge"><a><path fill="none" stroke="#000" d="M49.255 59.223v49"></path><path stroke="#000" d="m49.255 108.223 4-10h-8z"></path></a></g><g class="node"><a><ellipse cx="49.255" cy="34.362" fill="#fff" stroke="#000" rx="36.654" ry="24.362"></ellipse><path d="M40.128 40.57h-1.437V35.24h-5.86v5.329h-1.437V29.148h1.438v4.828h5.859v-4.828h1.437Zm6.247-8.735q1.11 0 1.89.485.798.468 1.22 1.343t.421 2.047v.844h-5.86q.032 1.453.735 2.219.72.75 2 .75.813 0 1.438-.14.64-.157 1.312-.438v1.218q-.656.297-1.297.422-.64.14-1.515.14-1.219 0-2.156-.484-.938-.5-1.47-1.484-.515-.984-.515-2.406 0-1.406.469-2.406.484-1.016 1.328-1.563.86-.547 2-.547m-.016 1.156q-1.015 0-1.593.657-.578.64-.688 1.78h4.36q0-.733-.235-1.265-.219-.547-.672-.86t-1.172-.312m7.134 7.579h-1.406V28.413h1.406Zm4.128 0h-1.406V28.413h1.406Zm10.175-4.297q0 1.062-.282 1.89-.28.828-.796 1.407-.516.562-1.266.859-.734.297-1.656.297-.844 0-1.563-.297t-1.25-.86q-.531-.578-.828-1.406t-.297-1.89q0-1.438.485-2.422.484-.985 1.375-1.5.89-.516 2.125-.516 1.171 0 2.062.516.89.515 1.39 1.5.5.984.5 2.422m-6.47 0q0 1 .25 1.75.267.734.83 1.14.562.39 1.42.39.876 0 1.423-.39.562-.406.828-1.14.266-.75.266-1.75 0-1.032-.282-1.75-.265-.72-.812-1.11t-1.438-.39q-1.312 0-1.906.86-.578.858-.578 2.39"></path></a></g><g class="node"><a><ellipse cx="49.255" cy="134.222" fill="#fff" stroke="#000" rx="39.255" ry="25.499"></ellipse><path d="m41.52 129.008-3.048 11.422H37.02l-2.219-7.485q-.093-.344-.203-.687-.094-.36-.172-.672-.078-.328-.14-.547-.047-.234-.063-.36-.015.126-.062.36-.032.219-.11.547-.078.312-.172.672t-.203.734l-2.156 7.438h-1.453l-3.031-11.422h1.515l1.766 6.968q.094.375.172.735.094.36.156.703.078.344.125.672.047.312.094.61.047-.313.094-.641.062-.344.14-.704l.188-.718q.093-.375.187-.735l2.016-6.89h1.484l2.094 6.937q.125.375.219.75.093.375.172.735.078.343.125.671.062.329.109.594.047-.39.125-.828.094-.453.203-.922.11-.484.234-.984l1.766-6.953Zm8.7 7.125q0 1.062-.282 1.89-.28.828-.796 1.407-.516.562-1.266.859-.734.297-1.656.297-.844 0-1.563-.297t-1.25-.86q-.531-.578-.828-1.406t-.297-1.89q0-1.438.485-2.422.484-.985 1.375-1.5.89-.516 2.125-.516 1.171 0 2.062.516.89.515 1.39 1.5.5.984.5 2.422m-6.47 0q0 1 .25 1.75.267.734.83 1.14.562.391 1.42.391.876 0 1.423-.39.562-.407.828-1.141.266-.75.266-1.75 0-1.032-.282-1.75-.265-.719-.812-1.11-.547-.39-1.438-.39-1.312 0-1.906.86-.578.858-.578 2.39m12.697-4.438q.234 0 .515.031.281.016.5.063l-.187 1.297q-.203-.047-.453-.078-.25-.032-.47-.032-.5 0-.952.204-.438.203-.797.593-.344.375-.547.907-.203.515-.203 1.171v4.579h-1.406v-8.579h1.156l.156 1.563h.063q.28-.469.656-.86.39-.39.875-.624.5-.235 1.094-.235m4.014 8.735h-1.406v-12.157h1.406Zm5.768.156q-1.609 0-2.578-1.11-.953-1.109-.953-3.312 0-2.219.969-3.344t2.578-1.125q.672 0 1.156.172.5.156.86.453.375.281.64.64h.094q-.016-.218-.062-.624-.032-.406-.032-.64v-3.423h1.407v12.157h-1.141l-.203-1.157H68.9q-.265.375-.64.672-.36.297-.86.469t-1.172.172m.22-1.172q1.359 0 1.905-.734.563-.75.563-2.25v-.25q0-1.61-.531-2.454-.532-.859-1.953-.859-1.141 0-1.704.906-.562.891-.562 2.422t.562 2.375 1.72.844"></path></a></g></svg></figure>"
Received: "<figure class="beoe vizdom"><img src="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 99.51 170.72'%3e%3cg class='graph'%3e%3ca%3e%3cpath fill='transparent' stroke='transparent' d='M0 0h99.51v170.72H0z'/%3e%3c/a%3e%3c/g%3e%3cg class='edge'%3e%3ca%3e%3cpath fill='none' stroke='black' d='M49.255 59.223v49'/%3e%3cpath stroke='black' d='m49.255 108.223 4-10h-8z'/%3e%3c/a%3e%3c/g%3e%3cg class='node'%3e%3ca%3e%3cellipse cx='49.255' cy='34.362' fill='white&#x
|
Test
Process completed with exit code 1.
|
Loading