mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-07 13:48:29 +02:00
Added more doc
- Added auto reload for doc engine - Added helloworld example
This commit is contained in:
@@ -106,7 +106,6 @@ func optimizeCss(htmlContent []byte) ([]byte, error) {
|
||||
endIndex += startIndex + 6
|
||||
|
||||
codeSegment := originalHTMLContent[startIndex : endIndex+7] // Include </code>
|
||||
fmt.Println(">>>>", codeSegment)
|
||||
if !strings.Contains(codeSegment, "class=") {
|
||||
replacement := strings.Replace(codeSegment, "<code>", "<span class=\"ts-text is-code\">", 1)
|
||||
replacement = strings.Replace(replacement, "</code>", "</span>", 1)
|
||||
|
Reference in New Issue
Block a user