on_comment Event
Fired when a comment section is encountered.
Syntax
class RESTCommentEventParams(object): @property def text() -> str: ... # In class REST: @property def on_comment() -> Callable[[RESTCommentEventParams], None]: ... @on_comment.setter def on_comment(event_hook: Callable[[RESTCommentEventParams], None]) -> None: ...
Remarks
The on_comment event is fired whenever a comment section (<!-- ..text... -->) is found in the document.
The full text of the comment is provided by the Text parameter.