Closed rmdort closed 10 years ago
Either a loose trim or a DOM impl. difference. Will take a look
Text auto-trimming logic was very sloppy. Raising priority to Major. Can't believe no one complained until now.
Hi Don,
This happens with strong
tag as well. Attached screenshot
There should be a space after strong
tag
will take a look. not likely soon though unless someone screams.
I am :P
It would be really great if you could take a look. I am in the middle of content migration of 800+ html pages to jade. Everything has been running smooth and fast, except for this one little bug :)
Ouch. html2jade is not quite good enough for automated use but I'll take a look tomorrow.
@rmdort I can't replicate this bug. my environment: platform: OS X Yosemite node: 0.10.33 html2jade: 0.8.0
Which version of html2jade and what platform are you using?
If you are not using html2jade directly but via one of the websites like html2jade.org as your screenshot shows above, I think the problem is they are using an older version of html2jade.
Hi Don,
The bug appears when there is a <a>
tag before <strong>
. The space between closing </a>
and opening <strong>
is removed
For example
<p>Hey there, <a href="#">html2jade</a> <strong>is awesome</strong></p>
gets rendered as
p
Hey there,
a(href="#") html2jade
strong is awesome
when it should be
p
Hey there,
a(href="#") html2jade
|
strong is awesome
My environment is the same as yours, except its node v10.29
aha. was able to replicate the bug and am now looking at the code.
@rmdort version 0.8.1 should do what you need.
I have spotted an issue where spaces are removed by the parser
If you notice, there should be a space between the text and the link.