build_lesson_content
Creates EditorJS JSON content for a lesson from a provided specification including paragraphs, headers, lists, images, code, embeds, quiz references, and markdown.
Instructions
Build an EditorJS JSON content string for a lesson from a spec.
Args: content_spec: JSON string with optional keys: paragraphs, headers, lists, images, code, embeds, quiz_refs, markdown. Example: '{"paragraphs":["Hello world"],"headers":[{"text":"Intro","level":2}]}'
Returns: EditorJS JSON string ready for the content field of a Course Lesson.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |