Back to Lowdefy

@lowdefy/blocks-markdown

code-docs/plugins/blocks/markdown.md

5.2.01.0 KB
Original Source

@lowdefy/blocks-markdown

Markdown rendering blocks for Lowdefy.

Blocks

BlockPurpose
MarkdownRender markdown content
MarkdownWithCodeMarkdown with syntax highlighting

Markdown Block

Renders markdown to HTML:

yaml
- id: docs
  type: Markdown
  properties:
    content: |
      # Welcome

      This is **markdown** content.

      - Item 1
      - Item 2

MarkdownWithCode Block

Adds syntax highlighting for code blocks:

yaml
- id: tutorial
  type: MarkdownWithCode
  properties:
    content: |
      # Code Example

      ```javascript
      const hello = 'world';
      console.log(hello);
      ```

Properties

PropertyPurpose
contentMarkdown string
skipHtmlDisable raw HTML in markdown
linkTargetDefault link target (_blank, etc.)