erusev / parsedown-extra

Markdown Extra Extension for Parsedown
MIT License
819 stars 123 forks source link

Can't embed video #159

Open keithslater opened 4 years ago

keithslater commented 4 years ago

Trying to embed a youtube video but I can't seem to get it to work when using ParsedownExtra. When using the HTML (embed html from YouTube), I'm getting:

DOMDocument::loadHTML(): Empty string supplied as input

I've also tried embedding using markdown but that doesn't produce the video at all. I'm fine using HTML to do it if there's a way to get around the error above.

taufik-nurrohman commented 4 years ago

Sometimes you need to strictly add two line break before and after the HTML block elements.