We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a48ad commit 57c4b79Copy full SHA for 57c4b79
1 file changed
Types/MarkX/ToString.ps1
@@ -1,2 +1,18 @@
1
+if ($args) {
2
+ $anyOutput = foreach ($arg in $args) {
3
+ $thisArg = $this.$arg
4
+ if ($thisArg) {
5
+ if ($thisArg.XHTML.InnerXML) {
6
+ "$($thisArg.XHTML.InnerXML)" + [Environment]::NewLine
7
+ } else {
8
+ "$thisArg"
9
+ }
10
11
12
+ if ($anyOutput) {
13
+ return $anyOutput -join [Environment]::NewLine
14
15
+}
16
+
17
if (-not $this.XML.XHTML) { return '' }
18
return ("$($this.XML.XHTML.InnerXML)" + [Environment]::NewLine)
0 commit comments