Skip to content

Commit 10a9039

Browse files
Escape the # in the output type
1 parent 614b419 commit 10a9039

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/Markdown.MAML/Model/YAML/YamlInputOutput.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@
22
{
33
public class YamlInputOutput
44
{
5-
public string Type { get; set; }
5+
string _type;
6+
public string Type
7+
{
8+
get
9+
{
10+
if (_type.Contains("#"))
11+
{
12+
return _type.Replace("#", "\\#");
13+
}
14+
15+
return _type;
16+
}
17+
set
18+
{
19+
_type = value;
20+
}
21+
}
622
public string Description { get; set; }
723
}
824
}

0 commit comments

Comments
 (0)