Answer the question
In order to leave comments, you need to log in
Why does the method handle parameters incorrectly?
I made this thing for myself https://html2pug.herokuapp.com/ , just because.
But I can't figure out why the html2jade plugin has a method
html2jade.convertHtml(html, {}, function (err, jade) {
// do your thing
});
Answer the question
In order to leave comments, you need to log in
You have code like this:
useTabs = false // дефолтное значение
...
useTabs = true if options.tabs // должно браться из настроек,
// но вы проверяете только true. False ваши настройки никогда не передадут
useTabs = if options.tabs is false then false else true
In jade, tabs are nested, it is impossible to get rid of them, not valid code. The tabs parameter is responsible for the size of the tabs in spaces, most likely. Pass a size to tabs, like 2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question