html2jade : converting html 2 jade with tabs as indentation

Using html2jade to convert html files to jade.

  1. But, it's using 2 white spaces as indentation and couldn't see a way to configure tab character as indentation. Is there any config option to specify the indentation character as tab?

Also, facing issue in converting html to jade if html has commented blocks like:

<div id='view-templates'>
    <!--<div id='project-view'>
        <div id='toolbar'>
            <div id='top-list'></div>
            <div id='intvl-options'></div>
            <div id='display-options'></div>
        </div>
        <div id='top-chart'>
        </div>
        <div id='bw-chart'>
        </div>
    </div>-->
</div>

The above code snippet is translated as:

#view-templates
  //
    <div id='project-view'>
            <div id='toolbar'>
                <div id='top-list'></div>
                <div id='intvl-options'></div>
                <div id='display-options'></div>
            </div>
            <div id='top-chart'>
            </div>
            <div id='bw-chart'>
            </div>
        </div>
  1. Looks it's not converting the commented HTML to jade resulting in invalid indentation. Is there any config option to exclude comments while converting to jade?

No, there is no set way to use tabs or spaces. But you can go from one to the other without any problem. That is if you change all tabs to spaces or vice versa, Jade will understand what is being written so, but must be the entire document or file must be changed.

Recommendation, be very careful with whitespace and comments here.