Skip to content

Commit 76fcd7a

Browse files
feat: MathML.get_SVG ( Fixes #5 )
1 parent cf47783 commit 76fcd7a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Types/MathML/get_SVG.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<#
2+
.SYNOPSIS
3+
Gets MathML as SVG
4+
.DESCRIPTION
5+
Gets a MathML equation within an SVG
6+
.LINK
7+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/foreignObject
8+
#>
9+
[xml]@"
10+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" font-size="3em">
11+
<foreignObject x="0%" y="0%" width="100%" height="100%">
12+
$($this.OuterXml)
13+
</foreignObject>
14+
</svg>
15+
"@

0 commit comments

Comments
 (0)