izolate/html2pug

Losing space between links and strong characters inline

gruberjl opened this issue · 0 comments

I appear to be losing the space when I put links, strong etc. in line in a paragraph. Can someone help?

Source HTML

<p>This is my text. This word is <strong>bold</strong> and this <a href="http://gitbit.org">link</a> is here.</p>

Pug Output

html
	head
	body
		p
			| This is my text. This word is
			strong bold
			| and this
			a(href='http://gitbit.org') link
			| is here.

Command being run to convert

const pug = html2pug(html.value, { tabs: true })

html2pug@2.0.1
pug@2.0.3
npm -v = 6.0.0
node -v = 8.11.1