Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not properly compiling inline elements in button #6

Open
kevinlo123 opened this issue Mar 24, 2022 · 0 comments
Open

Not properly compiling inline elements in button #6

kevinlo123 opened this issue Mar 24, 2022 · 0 comments

Comments

@kevinlo123
Copy link

Hey all, I was working on creating a hamburger button for a menu I'm working on and for some reason I was having trouble with having my code render properly after using this library in my gulp file.

The code I'm trying to render:

  <button type="button" class="hamburger">
    <span class="line"></span>
    <span class="line"></span>
    <span class="line"></span>
  </button>

Whats being rendered after I run this library in my gulpfile:
button type="button" class="hamburger"> </button>

How I'm using this library:

import htmltidy from 'gulp-htmltidy'

var options = {
  doctype: 'html5',
  hideComments: true,
  indent: true,
};

function build() {
  return gulp
  .pipe(htmltidy(options))
  .pipe(gulp.dest(paths.build));
}

For some reason when I remove this from my gulpfile it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant