d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.06k stars 59 forks source link

lookatme crashes when html tag is used in markdown #206

Open laoshaw opened 1 year ago

laoshaw commented 1 year ago

Describe the bug

whenever there is html tag in markdown it will crash

To Reproduce

create a markdown with three lines:

## test

<html>a tag</html>

then run lookatme my.md, it will crash

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

d0c-s4vage commented 1 year ago

Aha! Html tags have pretty decent support in the latest 3.0 release candidate. However, I think I can fix v2.X so that lookatme ignores html tags entirely.

If you want html tag support, checkout the latest from the 3.0-dev branch:

pip install --pre --upgrade lookatme

The --pre flag should install (as of today) lookatme v3.0.0-rc2