mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.19k stars 29 forks source link

HTML causes presenterm to crash #370

Open tmbdev opened 5 days ago

tmbdev commented 5 days ago

If there is any HTML inside the presentation, presenterm aborts with a parse error:

                       Error loading presentation: 

                       parse error at 292:1: unsupported element:
                       html block

This seems unnecessarily restrictive.

The simplest solution (and the Markdown compliant solution I believe) would be simply to display the HTML as text, without any attempt at rendering it.

Of course, it would be nice if a few common and easy tags were recognized:
,

, ,

, 
, etc.

This is with presenterm 0.8.0 on Ubuntu 24.04 running under Kitty.

mfontanini commented 5 days ago

Could you expand on what is the use case you have in mind where you would you want raw HTML showing up in your presentation? To me if the tool doesn't support rendering HTML I would prefer it to tell me it doesn't support it rather than spitting out HTML tags.

There is an issue regarding text coloring which could benefit from at least supporting span tags and attributes on them but it's been lingering for a while.