pablo-abc / svelte-markdown

Markdown parser to svelte components
MIT License
359 stars 50 forks source link

Suggestion: Setting a max-width on the image renderer prevents mobile headaches. #34

Open rboddy opened 2 years ago

rboddy commented 2 years ago

By setting a max-width on the image renderer, you can prevent markdown images from breaking mobile views. May want to include this in the docs as it already has a section on styling lists. Ex:

`

<img src={href} {title} alt={text}>

`