[markdown2html]

markdown2html is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Transforms Markdown into HTML.

  • Value (markdown), required: Markdown text to transform
  • Returns: Resolves to the HTML in value and any YAML front matter as child nodes

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
[media] bool no Whether media link extensions should be enabled.

Guide: How to use [markdown2html]

JSON declaration

This is the complete declaration of markdown2html, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "markdown2html",
  "description": "Transforms Markdown into HTML",
  "signature": {
    "input": {
      "kind": "markdown",
      "description": "Markdown text to transform",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": {
      "media": {
        "type": "bool",
        "description": "Whether media link extensions should be enabled",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Both",
      "kind": "html,text",
      "description": "Resolves to the HTML in value and any YAML front matter as child nodes"
    }
  }
}

← map all core slots mt →