d0c-s4vage / lookatme

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

3.0 - tutor examples aren't expanded correctly #193

Closed d0c-s4vage closed 1 year ago

d0c-s4vage commented 1 year ago

Describe the bug

The regex capture of <TUTOR:TYPE> can in tutor markdown can capture beyond the end of the closing >:

This needs to be change to not be greedy.

To Reproduce

On the 3.0-dev branch, run

lookatme --tutorial quote

Notice that the Rendered section does not actually contain the full rendered markdown