mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-20 05:49:15 +00:00
fix: remove debug statements
This commit is contained in:
parent
96d4f768d9
commit
97e2e50015
1 changed files with 0 additions and 2 deletions
|
@ -53,11 +53,9 @@ func ViewQuestion(c *gin.Context) {
|
|||
answerCodeBlocks := questionCodeBlockRegex.FindAllString(questionBodyParentHTML, -1)
|
||||
for _, codeBlock := range answerCodeBlocks {
|
||||
codeBlock = utils.StripBlockTags(codeBlock)
|
||||
fmt.Println(codeBlock)
|
||||
|
||||
// syntax highlight
|
||||
highlightedCodeBlock := utils.HighlightSyntaxViaContent(codeBlock)
|
||||
fmt.Println(highlightedCodeBlock)
|
||||
|
||||
// replace the code block with the highlighted code block
|
||||
questionBodyParentHTML = strings.Replace(questionBodyParentHTML, codeBlock, highlightedCodeBlock, 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue