MarkdownNodeComponent

Reference

Node use to represent components.

Patterns

:: button Click me ::
:: button
  Click me
::
:: button { class="btn" color="red" }
  Click me
::

Properties

name

  • Type: string

Name of the component. Ex: button

body

  • Type: string

Plain-text containing what is inside the component

attrs

  • Type: object

This is the attributes of the component

Example:

{
  class: "btn",
  color: "red"
}

isInlined

  • Type: Boolean

This indicate if is an inline component or not

toHtml

  • Type: function

This return empty by default