markdownEscape

emlib.doctools.markdownEscape(s)[source]

Escape s as markdown

Parameters:

s (str) – the string to escape

Return type:

str

Returns:

the escaped test

Example

>>> markdownEscape("my_title_with_underscore")
my\_title\_with\_underscore