Markdown to BlockDoc Conversion

This is a demonstration of converting Markdown content to BlockDoc format.

Key Features

BlockDoc makes it easy to work with structured content:

Code Examples

Here's an example of Python code:

      
from blockdoc import markdown_to_blockdoc

# Convert markdown to BlockDoc
doc = markdown_to_blockdoc(markdown_text)

# Export as JSON
json_str = doc.to_json()
print(json_str)

Images and Media

Images are properly converted:

Example image
Example image caption

Block Quotes

BlockDoc handles various content types:

This is a block quote that will be properly converted to a BlockDoc quote block, preserving its formatting and presentation.

Attribution Source

Lists

  1. Ordered lists work great
  2. With multiple items
  3. Preserving the numbering

The End

This example shows how Markdown can be seamlessly converted to BlockDoc format, preserving the document structure while enabling all the benefits of block-based content.