I am parsing markdown content using the Marked markdown parser. And it displays each new line as paragraph tags.
So if there is an image tag it will display it as
<p><img src="url" /></p>
If it contains only text it will show as
<p>Sometext</p>
What I want is the paragraph tags containing img tags to have a padding-left of 0 while the paragraph tags with only text to have padding-left of x value.
Is this possible using only css? Or do I have to use javascript as well?
...
` – Michael Jun 21 '17 at 11:00