emmet
emmet copied to clipboard
Emmet Abbrevation html:5 for pug doesn't produce doctype shortcut
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
ref https://github.com/microsoft/vscode/issues/81993 ref https://github.com/prettier/plugin-pug/issues/24
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.