Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions render_engine_parser/base_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ def parse_content(content: str) -> tuple[dict, str]:
return parse_content(content)

@staticmethod
def parse(content: str, page=None):
def parse(
content: str,
extras: dict[str, any] | None = None,
) -> str:
"""
Parses content to be rendered into HTML

In the base parser, this returns the content as is.

params:
content: content to be rendered into HTML
page: Render Engine Page Content object to gain access to attributes
extras: dictionary with extras to augment attributes
"""
return content