If markdown contains code with text that could be interpreted as html (eg. using "<" rather than entity escaping it), the text interpreted as a tag deleted. Eg
>>> md = Markdown("Do something if 0<foo or foo>10")
>>> console.print(md)
Do something if 010
Unless there's actual support for html, I think the html_inline rule should be disabled (or if this is used by something, add an option for markdown without html?). Changing the first line of markdown.Markdown.init to:
Describe the bug
If markdown contains code with text that could be interpreted as html (eg. using "<" rather than entity escaping it), the text interpreted as a tag deleted. Eg
Unless there's actual support for html, I think the html_inline rule should be disabled (or if this is used by something, add an option for markdown without html?). Changing the first line of markdown.Markdown.init to:
Seems to resolve the issue.
Platform
Click to expand
Running on linux, rich 13.9.4, wezterm terminal.