helpers#

sphinx_runpython.helpers.rst2html(rst: str, directives: Dict[str, Any] | None, report_level: int = 0, writer_name: str = 'html', **kwargs) Tuple[str, str][source]#

Converts a RST string into HTML or RST (simplified with no sphinx directives).

Parameters:
  • rst – RST string

  • directives – directives to load or None for all implemented in this package

  • writer_name – writer name

  • kwargs – additional values to add to the configuration

Returns:

output and warnings