Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed May 5, 2024
1 parent fbf363a commit d8891a4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 34 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ jobs:
- name: Install Playwright Browsers
run: pnpm exec playwright install chromium

- run: ls -la .turbo; exit 0

- name: Build
run: pnpm build --cache-dir=.turbo

- run: ls -la .turbo; exit 0

- name: Test
run: pnpm test
2 changes: 1 addition & 1 deletion packages/rehype-mermaid/test/fixtures/a.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<figure class="beoe mermaid"><svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 41.671875 49" style="max-width: 41.671875px;" xmlns="http://www.w3.org/2000/svg" width="100%" id="m01-0"><style>#m01-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}#m01-0 .error-icon{fill:#552222;}#m01-0 .error-text{fill:#552222;stroke:#552222;}#m01-0 .edge-thickness-normal{stroke-width:2px;}#m01-0 .edge-thickness-thick{stroke-width:3.5px;}#m01-0 .edge-pattern-solid{stroke-dasharray:0;}#m01-0 .edge-pattern-dashed{stroke-dasharray:3;}#m01-0 .edge-pattern-dotted{stroke-dasharray:2;}#m01-0 .marker{fill:#333333;stroke:#333333;}#m01-0 .marker.cross{stroke:#333333;}#m01-0 svg{font-family:arial,sans-serif;font-size:16px;}#m01-0 .label{font-family:arial,sans-serif;color:#333;}#m01-0 .cluster-label text{fill:#333;}#m01-0 .cluster-label span,#m01-0 p{color:#333;}#m01-0 .label text,#m01-0 span,#m01-0 p{fill:#333;color:#333;}#m01-0 .node rect,#m01-0 .node circle,#m01-0 .node ellipse,#m01-0 .node polygon,#m01-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#m01-0 .flowchart-label text{text-anchor:middle;}#m01-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#m01-0 .node .label{text-align:center;}#m01-0 .node.clickable{cursor:pointer;}#m01-0 .arrowheadPath{fill:#333333;}#m01-0 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#m01-0 .flowchart-link{stroke:#333333;fill:none;}#m01-0 .edgeLabel{background-color:#e8e8e8;text-align:center;}#m01-0 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#m01-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#m01-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#m01-0 .cluster text{fill:#333;}#m01-0 .cluster span,#m01-0 p{color:#333;}#m01-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#m01-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#m01-0 :root{--mermaid-font-family:arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"></path></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"></path></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"></circle></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"></circle></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="m01-0_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"></path></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="m01-0_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"></path></marker><g class="root"><g class="clusters"></g><g class="edgePaths"></g><g class="edgeLabels"></g><g class="nodes"><g transform="translate(12.8359375, 16.75)" data-id="A" data-node="true" id="flowchart-A-0" class="node default default flowchart-label"><rect height="33.5" width="25.671875" y="-16.75" x="-12.8359375" ry="0" rx="0" style="" class="basic label-container"></rect><g transform="translate(-5.3359375, -9.25)" style="" class="label"><rect></rect><foreignObject height="18.5" width="10.671875"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">A</span></div></foreignObject></g></g></g></g></g></svg></figure>
<figure class="beoe mermaid"><svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 41.671875 49" style="max-width: 41.671875px;" xmlns="http://www.w3.org/2000/svg" width="100%" id="m01-0"><style>#m01-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}#m01-0 .error-icon{fill:#552222;}#m01-0 .error-text{fill:#552222;stroke:#552222;}#m01-0 .edge-thickness-normal{stroke-width:2px;}#m01-0 .edge-thickness-thick{stroke-width:3.5px;}#m01-0 .edge-pattern-solid{stroke-dasharray:0;}#m01-0 .edge-pattern-dashed{stroke-dasharray:3;}#m01-0 .edge-pattern-dotted{stroke-dasharray:2;}#m01-0 .marker{fill:#333333;stroke:#333333;}#m01-0 .marker.cross{stroke:#333333;}#m01-0 svg{font-family:arial,sans-serif;font-size:16px;}#m01-0 .label{font-family:arial,sans-serif;color:#333;}#m01-0 .cluster-label text{fill:#333;}#m01-0 .cluster-label span,#m01-0 p{color:#333;}#m01-0 .label text,#m01-0 span,#m01-0 p{fill:#333;color:#333;}#m01-0 .node rect,#m01-0 .node circle,#m01-0 .node ellipse,#m01-0 .node polygon,#m01-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#m01-0 .flowchart-label text{text-anchor:middle;}#m01-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#m01-0 .node .label{text-align:center;}#m01-0 .node.clickable{cursor:pointer;}#m01-0 .arrowheadPath{fill:#333333;}#m01-0 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#m01-0 .flowchart-link{stroke:#333333;fill:none;}#m01-0 .edgeLabel{background-color:#e8e8e8;text-align:center;}#m01-0 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#m01-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#m01-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#m01-0 .cluster text{fill:#333;}#m01-0 .cluster span,#m01-0 p{color:#333;}#m01-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#m01-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#m01-0 :root{--mermaid-font-family:arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"></path></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"></path></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"></circle></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="m01-0_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"></circle></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="m01-0_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"></path></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="m01-0_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"></path></marker><g class="root"><g class="clusters"></g><g class="edgePaths"></g><g class="edgeLabels"></g><g class="nodes"><g transform="translate(12.8359375, 16.5)" data-id="A" data-node="true" id="flowchart-A-0" class="node default default flowchart-label"><rect height="33" width="25.671875" y="-16.5" x="-12.8359375" ry="0" rx="0" style="" class="basic label-container"></rect><g transform="translate(-5.3359375, -9)" style="" class="label"><rect></rect><foreignObject height="18" width="10.671875"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">A</span></div></foreignObject></g></g></g></g></g></svg></figure>
1 change: 0 additions & 1 deletion packages/rehype-mermaid/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ it("renders diagram", async () => {
.use(rehypeStringify)
.process(await fs.readFile(new URL("./fixtures/a.md", import.meta.url)));

console.log(file.toString());
expect(file.toString()).toMatchFileSnapshot("./fixtures/a.html");
});
2 changes: 1 addition & 1 deletion packages/remark-code-hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"rehype-raw": "^7.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"remark-stringify": "^10.0.0"
"rehype-stringify": "^10.0.0"
}
}
41 changes: 10 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8891a4

Please sign in to comment.