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

Element is missing end tag. #4188

Closed
4 tasks done
ZtfCoder opened this issue Sep 9, 2024 · 1 comment
Closed
4 tasks done

Element is missing end tag. #4188

ZtfCoder opened this issue Sep 9, 2024 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@ZtfCoder
Copy link

ZtfCoder commented Sep 9, 2024

Describe the bug

Why did I encounter Element is missing end tag? I can't understand this error

image

<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title></title>
    <style>
      /*申明字体*/
      @font-face {
        font-family: "iconfont";
        src: url("font/iconfont.eot"); /* IE9*/
        src: url("font/iconfont.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
            url("font/iconfont.woff") format("woff"),
          /* chrome、firefox */ url("font/iconfont.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
            url("font/iconfont.svg#iconfont") format("svg"); /* iOS 4.1- */
      }

      p {
        width: 200px;
        border: 1px solid #000;
        line-height: 60px;
        font-size: 30px;
        margin: 100px auto;
        text-align: center;
        position: relative;
      }

      .icon::before {
        content: "\e628";
        font-family: iconfont;
        color: red;
      }

      span {
        position: relative;
      }
    </style>
  </head>
  <body>
    <p class="icon">扫码付款</p>
    <span class="icon">我是span</span>
    <div class="icon">divvvvvvvvvvv</div>
  </body>
</html>

If this is a markdown verification error, can we make Vitepress more compatible with this type of error, or can we have a switch to enable this function

Reproduction

nothing

Expected behavior

succeeful build

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 2.88 GB / 15.85 GB
  Binaries:
    Node: 18.20.3 - C:\Program Files\nodejs\node.EXE    
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD      
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD       
    pnpm: 8.15.7 - C:\Program Files\nodejs\pnpm.CMD     
    bun: 1.1.21 - ~\.bun\bin\bun.EXE
  Browsers:
    Chrome: 128.0.6613.120
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    vitepress: ^1.3.1 => 1.3.1

Additional context

No response

Validations

@ZtfCoder ZtfCoder added the bug: pending triage Maybe a bug, waiting for confirmation label Sep 9, 2024
@ZtfCoder ZtfCoder closed this as completed Sep 9, 2024
@ZtfCoder
Copy link
Author

ZtfCoder commented Sep 9, 2024

I have solved

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant