From 93adc4f47411d8aaa877f78f287ab67b03bc3d93 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sat, 26 Nov 2022 23:19:16 -0800 Subject: [PATCH] 2022-11-26 11:19:16PM --- .../testdata/todo/latex/dagre/board.exp.json | 43 + .../testdata/todo/latex/dagre/sketch.exp.svg | 781 ++++++++++++++++++ .../testdata/todo/latex/elk/board.exp.json | 43 + .../testdata/todo/latex/elk/sketch.exp.svg | 781 ++++++++++++++++++ e2etests/todo_test.go | 7 + 5 files changed, 1655 insertions(+) create mode 100644 e2etests/testdata/todo/latex/dagre/board.exp.json create mode 100644 e2etests/testdata/todo/latex/dagre/sketch.exp.svg create mode 100644 e2etests/testdata/todo/latex/elk/board.exp.json create mode 100644 e2etests/testdata/todo/latex/elk/sketch.exp.svg diff --git a/e2etests/testdata/todo/latex/dagre/board.exp.json b/e2etests/testdata/todo/latex/dagre/board.exp.json new file mode 100644 index 000000000..824b3e667 --- /dev/null +++ b/e2etests/testdata/todo/latex/dagre/board.exp.json @@ -0,0 +1,43 @@ +{ + "name": "", + "shapes": [ + { + "id": "hi", + "type": "text", + "pos": { + "x": 0, + "y": 0 + }, + "width": 167, + "height": 24, + "level": 1, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "#FFFFFF", + "stroke": "#0D32B2", + "shadow": false, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "Inline math $\\frac{1}{2}$", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 167, + "labelHeight": 24 + } + ], + "connections": [] +} diff --git a/e2etests/testdata/todo/latex/dagre/sketch.exp.svg b/e2etests/testdata/todo/latex/dagre/sketch.exp.svg new file mode 100644 index 000000000..7efe84bd8 --- /dev/null +++ b/e2etests/testdata/todo/latex/dagre/sketch.exp.svg @@ -0,0 +1,781 @@ + +

Inline math \(\frac{1}{2}\)

+
\ No newline at end of file diff --git a/e2etests/testdata/todo/latex/elk/board.exp.json b/e2etests/testdata/todo/latex/elk/board.exp.json new file mode 100644 index 000000000..945c00919 --- /dev/null +++ b/e2etests/testdata/todo/latex/elk/board.exp.json @@ -0,0 +1,43 @@ +{ + "name": "", + "shapes": [ + { + "id": "hi", + "type": "text", + "pos": { + "x": 12, + "y": 12 + }, + "width": 167, + "height": 24, + "level": 1, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "#FFFFFF", + "stroke": "#0D32B2", + "shadow": false, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "Inline math $\\frac{1}{2}$", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "markdown", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 167, + "labelHeight": 24 + } + ], + "connections": [] +} diff --git a/e2etests/testdata/todo/latex/elk/sketch.exp.svg b/e2etests/testdata/todo/latex/elk/sketch.exp.svg new file mode 100644 index 000000000..7c84186b0 --- /dev/null +++ b/e2etests/testdata/todo/latex/elk/sketch.exp.svg @@ -0,0 +1,781 @@ + +

Inline math \(\frac{1}{2}\)

+
\ No newline at end of file diff --git a/e2etests/todo_test.go b/e2etests/todo_test.go index 4ec848e48..793c6ca58 100644 --- a/e2etests/todo_test.go +++ b/e2etests/todo_test.go @@ -13,6 +13,13 @@ func testTodo(t *testing.T) { script: ` container.first -> container.second: 1->2 container -> container.second: c->2 +`, + }, + { + name: "latex", + script: `hi: |md +Inline math $\frac{1}{2}$ +| `, }, }