Skip to content

Conversation

@majiayu000
Copy link

Summary

This PR fixes #176

Changes

  • Added SkipMarkdown field to Result struct to control markdown rendering
  • Set SkipMarkdown=true for list-models output to prevent text wrapping
  • Updated main.go to check SkipMarkdown flag before applying markdown renderer

The issue was that the markdown renderer was processing the model list output, causing the models to be displayed as a wrapped paragraph instead of a clean list with one model per line.

Testing

  • ✅ Code builds successfully
  • ✅ No existing tests broken (no test files exist in the project)
  • ✅ Code follows gofmt standards

Generated with Claude Code

Fixed the -list-models flag to display models in a clean list format
(one per line) instead of wrapping them as a paragraph. The issue was
that the markdown renderer was processing the model list output,
causing unwanted text wrapping.

Changes:
- Added SkipMarkdown field to Result struct
- Set SkipMarkdown=true for list-models output
- Updated main.go to check SkipMarkdown before applying renderer

Fixes projectdiscovery#176

Signed-off-by: majiayu000 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-list-models flag does not list models correctly

2 participants