Merge pull request #513 from trheyi/main

[fix] sui page style
This commit is contained in:
Max 2023-12-09 00:27:43 +08:00 committed by GitHub
commit a6f10eccdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,7 @@ func (page *Page) BuildStyle(option *BuildOption) (string, error) {
if option.Namespace != "" {
code = cssRe.ReplaceAllStringFunc(code, func(css string) string {
return fmt.Sprintf("[s:ns=%s] %s", option.Namespace, css)
return fmt.Sprintf("[s\\:ns=%s] %s", option.Namespace, css)
})
}