You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a schema that uses the union to specify the type of an attribute and when I run the doc tool, the markdown output contains a pipe which results in an extra column in the table and the type following the pipe in the wrong column in the table.
1. Minimal reproduce step (Required)
Create a new module test
kcl mod init test && cd test
Create a schema file with the contents:
schema x:
a: int | str # attribute a could be a int or string
Run the doc tool
2. What did you expect to see? (Required)
I expected to see the int | str as the type column in the markdown table.
Bug Report
I have a schema that uses the union to specify the type of an attribute and when I run the doc tool, the markdown output contains a pipe which results in an extra column in the table and the type following the pipe in the wrong column in the table.
1. Minimal reproduce step (Required)
test
2. What did you expect to see? (Required)
I expected to see the
int | str
as the type column in the markdown table.Acceptable output would have the pipe escaped:
Here is the relevant output:
3. What did you see instead (Required)
Instead, I see the
str
in the wrong column in the markdown table because the table has too many pipes. The pipe character should be escaped.Here is the relevant output markdown:
This is what the table looks like:
required
4. What is your KCL components version? (Required)
The text was updated successfully, but these errors were encountered: