Closed ZtfCoder closed 2 months ago
Why did I encounter Element is missing end tag? I can't understand this error
<!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
nothing
succeeful build
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
No response
I have solved
Describe the bug
Why did I encounter Element is missing end tag? I can't understand this error
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
Additional context
No response
Validations