wmaurer / vscode-html2jade

Visual Studio Extensions for converting HTML to Jade, and Jade to HTML
4 stars 2 forks source link

<html> tag and <body> tag won't converted on converting from HTML to jade #5

Open ginlime opened 8 years ago

ginlime commented 8 years ago

As the title.

Like this:

<html>
    <head>
        <meta />
    </head>
    <body>
        <h1>Hello!</h1>
    </body>
</html>

will be converted as like this.

head
    meta
h1 Hello!

I guess it may be a behavior as specified, but both tags are required because specifying language attribute or functional classes is needed...

langxiong commented 8 years ago

const html2JadeDisposable = vscode.commands.registerTextEditorCommand('extension.html2jade', (textEditor, edit) => { const convertHtmlOptions = { bodyless: true,

The 'bodyless' option enables 'do not output enveloping html and body tags' behavior.

langxiong commented 8 years ago

You can just remove 'bodyless: true,' manually. vim ~/.vscode/extensions/wmaurer.html2jade-0.2.0/out/extension.js