markdown

Module: espressodb.base.utilities.markdown


Markdown to html converter

PATTERNS = {'`([^`]+)`': '<code>\\g<1></code>'}

Patterns for markdown to html conversion

convert_string(string, wrap_blocks=False)[source]

Converts Markdown like expression to html.

See PATTERNS for available substitutions.

Parameters
  • string (str) – The string to convert to html.

  • wrap_blocks (bool) – If True wrap string in <p> blocks. Delimi

Return type

str