Skip to content

feat: math要素のレンダリングをMathML+SVGポリフィル方式に変更 #42

feat: math要素のレンダリングをMathML+SVGポリフィル方式に変更

feat: math要素のレンダリングをMathML+SVGポリフィル方式に変更 #42

Triggered via push February 4, 2026 11:36
Status Failure
Total duration 21s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
error: expect(received).toBe(expected): tests/unit/render/escape.test.ts#L587
Expected: "color: red; font-size: 12px" Received: "color: red;font-size: 12px" at <anonymous> (/home/runner/work/wdpr/wdpr/tests/unit/render/escape.test.ts:587:63)
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
{ "elements": [ { "data": { "attributes": {}, "elements": [ { - "data": "No argument [[user]]", + "data": "No", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "argument", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "[[", + "element": "text", + }, + { + "data": "user", + "element": "text", + }, + { + "data": "]]", "element": "text", }, { "element": "line-break", }, { - "data": "Some Spaces [[ user Alice]]", + "data": "Some", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "Spaces", + "element": "text", + }, + { + "data": " ", "element": "text", + }, + { + "data": { + "name": "Alice", + "show-avatar": false, + }, + "element": "user", }, ], "type": "paragraph", }, "element": "container", }, { "data": { "hide": false, "title": null, }, "element": "footnote-block", }, ], } - Expected - 2 + Received + 45 at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-parser.test.ts:128:24)
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
@@ -48,12 +48,21 @@ "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "Inner", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "Inner", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": false, }, ], @@ -120,48 +129,49 @@ "elements": [ { "data": "Before", "element": "text", }, - ], - "type": "paragraph", - }, - "element": "container", - }, - { - "data": { - "attributes": { - "_source": "block", - }, - "rows": [ + { + "data": "[[", + "element": "text", + }, + { + "data": "table", + "element": "text", + }, + { + "data": "]]", + "element": "text", + }, + { + "data": "[[", + "element": "text", + }, + { + "data": "row", + "element": "text", + }, + { + "data": "]]", + "element": "text", + }, + { + "data": "[[", + "element": "text", + }, + { + "data": "cell", + "element": "text", + }, { - "attributes": {}, - "cells": [ - { - "align": null, - "attributes": {}, - "column-span": 1, - "elements": [ - { - "data": "Inside", - "element": "text", - }, - ], - "header": false, - }, - ], + "data": "]]", + "element": "text", }, - ], - }, - "element": "table", - }, - { - "data": { - "attributes": {}, - "elements": [ { - "data": "After", + "data": "Inside", "element": "text", },
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
@@ -85,12 +85,21 @@ "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "Apple", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "Apple", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": false, }, ], @@ -125,24 +134,42 @@ "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "A", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "A", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": true, }, { "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "B", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "B", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": true, }, ], @@ -154,24 +181,42 @@ "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "1", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "1", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": false, }, { "align": null, "attributes": {}, "column-span": 1, "elements": [ { - "data": "2", - "element": "text", + "data": { + "attributes": {}, + "elements": [ + { + "data": "2", + "element": "text", + }, + ], + "type": "paragraph", + }, + "element": "container", }, ], "header": false, }, ], @@ -211,12 +256,21 @@ "data-sort": "number", }, "column-span": 1, "elements": [ { - "data": "apple", - "element": "text", +
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
@@ -86,13 +86,11 @@ }, { "data": "/", "element": "text", }, - { - "element": "line-break", - }, ], "type": "paragraph", }, "element": "container", }, - Expected - 3 + Received + 0 at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-parser.test.ts:128:24)
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
{ "elements": [ { "data": { "attributes": {}, "elements": [ { - "data": "[[ module BACKlinks ]]", + "data": "[[", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "module", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "BACKlinks", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "]]", "element": "text", }, ], "type": "paragraph", }, "element": "container", }, { "data": { "hide": false, "title": null, }, "element": "footnote-block", }, ], } - Expected - 1 + Received + 25 at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-parser.test.ts:128:24)
error: expect(received).toEqual(expected): tests/integration/fixture-parser.test.ts#L128
{ "elements": [ { "data": { "attributes": {}, "button-text": null, "module": "join", }, "element": "module", }, { "data": { "attributes": {}, "button-text": null, "module": "join", }, "element": "module", }, { "data": { "attributes": {}, "elements": [ { - "data": "[[ module JOIN button="Join our site!! ;-)"]]", + "data": "[[", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "module", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "JOIN", + "element": "text", + }, + { + "data": " ", + "element": "text", + }, + { + "data": "button", + "element": "text", + }, + { + "data": "=", + "element": "text", + }, + { + "data": ""Join our site!! ;-)"", + "element": "text", + }, + { + "data": "]]", "element": "text", }, ], "type": "paragraph", }, "element": "container", }, { "data": { "attributes": { "class": "join-module", + "id": "join-btn", + "style": "display: flex", }, "button-text": null, "module": "join", }, "element": "module", }, { "data": { "hide": false, "title": null, }, "element": "footnote-block", }, ], } - Expected - 1 + Received + 39 at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-parser.test.ts:128:24)
error: expect(received).toBe(expected): tests/integration/fixture-render.test.ts#L151
Expected: "<p>User normal: <span class="printuser"><a href="http://www.wikidot.com/user:info/alice">Alice</a></span><br />User with star: <span class="printuser avatarhover"><a href="http://www.wikidot.com/user:info/bob"><img alt="Bob" class="small" src="http://www.wikidot.com/avatar.php?userid=9318&amp;size=small&amp;timestamp=1769416030" style="background-image:url(http://www.wikidot.com/userkarma.php?u=9318)" /></a><a href="http://www.wikidot.com/user:info/bob">Bob</a></span></p><p>Weird: <span class="printuser"><a href="http://www.wikidot.com/user:info/system">system</a></span></p><p>Special: Anonymous</p>" Received: "<p>User normal: Alice<br />User with star: Bob</p><p>Weird: SYSTEM</p><p>Special: anonymous</p>" at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
error: expect(received).toBe(expected): tests/integration/fixture-render.test.ts#L151
Expected: "<p>[[table]] [[cell]] Also no row [<a href="/cell]]">[[/table</a>]</p><p>EMPTY TABLE<br />[[table]]<br />[[/table]]</p><p>EMPTY ROW<br />[[table]]<br />[[row]]<br />[[/row]]<br />[[/table]]</p>" Received: "<p>[[table]] [[cell]] Also no row [[/cell]] [[/table]]</p><p>EMPTY TABLE</p><p>[[table]]</p><p>[[/table]]</p><p>EMPTY ROW</p><p>[[table]]</p><p>[[row]]</p><p>[[/row]]</p><p>[[/table]]</p>" at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
error: expect(received).toBe(expected): tests/integration/fixture-render.test.ts#L151
Expected: "<div><h3>_default</h3><a href="javascript:;" id="category-pages-toggler-42041109">+ list pages</a><... (20442 bytes truncated) ...="display: none"></div><div id="category-pages-42423865-options" style="display: none"></div></div>" Received: "<div class="categories-module-box"></div><div class="categories-module-box"></div><div class="categories-module-box"></div><div class="categories-module-box"></div>" at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)