markdownReplaceHeadings¶
- emlib.doctools.markdownReplaceHeadings(s, indentLevel=1, normalize=True)[source]¶
Replaces any heading of the form:
Heading to # Heading =======
- Parameters:
s (
str
) – the markdown textindentLevel – the heading start level
normalize – if True, the highest heading in s will be forced to become a indentLevel heading.
- Return type:
str
- Returns:
the modified markdown text