MarkdownOutput
Markdown output widget for displaying formatted text.
Examples
Basic Usage
This example runs a form with a single page containing the widget
Example Code
from abstra.forms import MarkdownOutput, run
text = """
## Markdown Output
* 1^th^ H~2~0
- [ ] Task
* ==Mark==
`code`
* [Link](https://www.abstracloud.com/)
"""
# Create a page with the widget
example_page = [MarkdownOutput(text)]
# Run the form
result = run([example_page])
# Print the result
print(result)
Parameters
Name | Description | Type | Default |
---|---|---|---|
text (required) | The markdown content to display. | str | None |
full_width | Whether the content should take up the full width of its container. | bool | False |