mightstone.services.wiki.models.WikiParagraph

pydantic model mightstone.services.wiki.models.WikiParagraph

Representation of a wiki paragraph

A wiki paragraph is separated by a blank line

Show JSON schema
{
   "title": "WikiParagraph",
   "description": "Representation of a wiki paragraph\n\nA wiki paragraph is separated by a blank line",
   "type": "object",
   "properties": {
      "items": {
         "default": [],
         "items": {
            "$ref": "#/$defs/WikiElement"
         },
         "title": "Items",
         "type": "array"
      }
   },
   "$defs": {
      "WikiElement": {
         "properties": {},
         "title": "WikiElement",
         "type": "object"
      }
   }
}

Fields:
field items: list[WikiElement] = []
as_html()
as_text()
as_wiki()
static from_elements(*elements: WikiElement)