Closed soubinan closed 3 weeks ago
Hello. Have you tried the --escape-html
flag in the kcl doc gen
command or the EscapeHtml
options in the KCL Go API: https://github.com/kcl-lang/kcl-go/blob/main/pkg/tools/gen/gendoc.go#L66
Just tried and it did the job
Great!
When I saw escape-html I assumed it was for html content (I did not considered |
to be an html symbol) and didn't try.
Maybe could be more explicit?
Thanks!
Enhancement
What we have today:
This markdown section has been generated from the model below
Issue noticed: In declaractions with union of types like in
$serviceType: "http" | "https" | "tcp"
the values are spreaded over a markdown table while they should be in one columnthe render gives
instead of
Expected behavior: the union symbol
|
should be escaped by default for the type column to become:"http" \| "https" \| "tcp"
or could even be replace byor
to become:"http" or "https" or "tcp"