twilson63 / html2haml

Convert HTML Snippets to Haml
http://html2haml.heroku.com
MIT License
180 stars 82 forks source link

Element with following comma causes everything after the comma to be eaten #24

Open adailey14 opened 10 years ago

adailey14 commented 10 years ago

Example: Input:

Hello there, buddy

Output: %h4 Hello = succeed "," do %strong there

buddy is gone!

lulalala commented 2 years ago

Can confirm this is still the case

Input

<p>foo <a href="/">bar</a>, baz.</p>

Output

%p
  foo
  = succeed "," do
    %a{:href => "/"} bar
twilson63 commented 2 years ago

happy to take PRs to fix issue, thx