printMD

utilipy.ipython.printMD(s: str, color: Optional[str] = None, size: Optional[float] = None, bold: bool = False, italic: bool = False, fontweight: Optional[float] = None, fontstyle: Optional[str] = None, highlight: Optional[str] = None)[source]

Print in Markdown.

uses <span>

Parameters
sstr

the string to print

colorstr or None, optional (default None)

sets the ‘style:color’ for color names see https://www.w3schools.com/tags/ref_colornames.asp or can supply hex value

sizeint, optional (default None)

sets the ‘style:font-size’ in px

boldbool, optional

(default False) shortcut to fontweight=’bold’ fontweight takes precedence

italicbool, optional

(default False) shortcut to fontstyle=’italic’ fontstyle takes precedence

fontweightstr or int, optional

(default None) sets the ‘style:font-weight’ str options: ‘normal’, ‘bold’, ‘lighter’, ‘bolder’ int options: 0-1000

fontstylestr or None, optional

(default None) sets the ‘style:font-style’ see https://www.w3schools.com/cssref/pr_font_font-style.asp str options: normal, italic, oblique, initial, inherit

highlightstr or None, optional

(default None)