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

How to disable removing of "div" tag in "pug" templates #2839

Open
RynerNO opened this issue Apr 3, 2021 · 2 comments
Open

How to disable removing of "div" tag in "pug" templates #2839

RynerNO opened this issue Apr 3, 2021 · 2 comments
Labels

Comments

@RynerNO
Copy link

RynerNO commented Apr 3, 2021

I wand to dissable convetring this
div(class="p-d-flex p-ai-center p-jc-center p-flex-column r-container")
into this
.p-d-flex.p-ai-center.p-jc-center.p-flex-column.r-container

Because this is less readable and looks ugly.

@yoyo930021
Copy link
Member

I don't know what are you talking about.
What time is converting?

@BassOfBass
Copy link

It's related more to emmet I suppose.
When you write an emmet snippet like:

dl.definition-list>(div.definition-list__item>dt.definition-list__term+dd.definition-list__definition)*2

It will output:

dl.definition-list
  .definition-list__item
    dt.definition-list__term
    dd.definition-list__definition
  .definition-list__item
    dt.definition-list__term
    dd.definition-list__definition

I guess emmet config for PUG is too overzealous on following the rule of div with a class literal.

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

No branches or pull requests

3 participants