donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 157 forks source link

Multiple attributes render incorrectly #86

Closed dbryand closed 9 years ago

dbryand commented 10 years ago
<textarea class="note-text" id="{{id}}">{{text}}</textarea>

results in:

textareadiv.note-text {{text}} (id="{{id}}")

but should be:

textarea.note-text(id="{{id}}") {{text}}

image

Thanks!

donpark commented 10 years ago

Hmm. This issue and previous issue might be caused by the DOM parser because your examples are are not valid HTML. html2jade works at DOM level, not textual level.

donpark commented 9 years ago

Fixed in 0.8 1d475b68255a60f346841bb55eb3f08b331e3e0a