Document apiReference

markdownToFragment

Convert a Markdown string into an SDM/1 structural fragment.

read-onlyidempotent
doc.markdownToFragment(…)

Expected result

Returns an SDMarkdownToFragmentResult with the converted fragment, lossy flag, and diagnostics.

Inputs

markdownstringrequired

Result

Output fields
fragmentunknownrequired
lossybooleanrequired
diagnosticsobject[]required

Raw schemas

Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.

View raw JSON schemas