This will be an abstract class that represents user content in a particular format.
An instance of ContentNode will have some number of children which are themselves content nodes of any other format.
Should define:
renderToHTML
Returns an HTML string of the content and all children.
renderToTEX
Returns a TEX string of the content and all children.
renderToPDF
Returns the structure necessary to build a PDF of the content and all children.
This will be an abstract class that represents user content in a particular format.
An instance of ContentNode will have some number of children which are themselves content nodes of any other format.
Should define:
- `renderToHTML`
- Returns an HTML string of the content and all children.
- `renderToTEX`
- Returns a TEX string of the content and all children.
- `renderToPDF`
- Returns the structure necessary to build a PDF of the content and all children.
garrettmills
added this to the Generic Renderers project 3 years ago
This will be an abstract class that represents user content in a particular format.
An instance of ContentNode will have some number of children which are themselves content nodes of any other format.
Should define:
renderToHTML
renderToTEX
renderToPDF