toHtml method

  1. @override
String toHtml()
override

Returns an HTML representation of the element

Implementation

@override
String toHtml() {
  return '<main>'
      '${heading.toHtml()}'
      '<section id="authors">'
      '${Heading(title: "Authors").toHtml()}'
      '${authors.map((e) => e.toHtml()).join()}'
      '</section>'
      '${Index(elements: getChildren()).toHtml()}'
      '${chapters.toHtml()}'
      '${appendices?.toHtml()}'
      '</main>';
}