emmet icon indicating copy to clipboard operation
emmet copied to clipboard

Emmet Abbrevation html:5 for pug doesn't produce doctype shortcut

Open Shinigami92 opened this issue 5 years ago • 1 comments

When I open a pug-file and use html:5 emmet, it produces <!DOCTYPE html> in the first line instead of using the pug's doctype shortcut

image

ref https://github.com/microsoft/vscode/issues/81993 ref https://github.com/prettier/plugin-pug/issues/24

Shinigami92 avatar Oct 17 '19 07:10 Shinigami92

Full support for HTML5 generation is fully included in PUG for a while now. No need for the "<!DOCTYPE .." trick.

BTW: without doctype html the generated html4 code by the pug compiler will have self closed tags like <input ... />.

As this would be correct:

doctype html
html

to also trigger HTML5 code generation with any pug compiler.

Means: A fix would be quite important.

BananaAcid avatar May 16 '20 14:05 BananaAcid