added new converter + middleware config for cache#6
Merged
Conversation
Contributor
Author
|
added bigfile.html for speed testing, not really needed but cool to see how fast it is |
b822dca to
d4e2714
Compare
Comment on lines
+481
to
+487
| // Result should be non-nil | ||
| if result == "" && tt.name == "no html structure" { | ||
| // Plain text should still be extracted | ||
| if !strings.Contains(result, "plain text") { | ||
| // This is acceptable - some parsers handle this differently | ||
| } | ||
| } |
Contributor
There was a problem hiding this comment.
Should we have a check in here? We have ifs for nothing 😂
Comment on lines
+147
to
+150
| // Return the processed markdown | ||
| w.Header().Set("Content-Type", "text/markdown; charset=utf-8") | ||
| w.WriteHeader(rw.statusCode) | ||
| w.Write(processed) | ||
| w.Write([]byte(markdown)) |
Contributor
There was a problem hiding this comment.
we need to change the content-length header too. But we can do that in another pr. Mostly just pointing it out.
TheOutdoorProgrammer
approved these changes
Dec 28, 2025
Contributor
TheOutdoorProgrammer
left a comment
There was a problem hiding this comment.
Just the small nits above looks good!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a high-performance HTML-to-Markdown converter with HTTP middleware for serving LLM-optimized content via ?gremllm query parameter.
Features
Converter
Middleware
Content Control
Tag Coverage
Performance