RegistryContentNodeOption
A single option within a chooser content node, representing one language or OS variant.
Properties
kindstring optionalOption kind. Known kinds: ‘code’ (content is a bare code snippet with no fence) and ’text’ (content is markdown). Render ‘markdown’ for unrecognized kinds.languagestring optionalThe language this option applies to (for ’language-chooser’ nodes). One of: typescript, python, go, csharp, java, yaml. When an option declares several languages this is the first of ’languages'.languagesarray[string] optionalEvery language this option applies to (for ’language-chooser’ nodes). A single option can serve several languages, e.g. a snippet shared by csharp and fsharp.osstring optionalThe operating system this option applies to (for ‘os-chooser’ nodes). One of: linux, macos, windows.contentstring requiredThe content for this option, typically a code snippet or instructions. Interpretation depends on ‘kind’; prefer ‘markdown’ unless you need the bare snippet.markdownstring requiredThe option rendered as markdown, whatever its kind: ‘code’ options are returned fenced with their language. Render this when you do not handle ‘kind’ specifically.