Skip to content

Add initial Markdown support - #29

Open
strzibny wants to merge 4 commits into
masterfrom
markdown
Open

Add initial Markdown support#29
strzibny wants to merge 4 commits into
masterfrom
markdown

Conversation

@strzibny

@strzibny strzibny commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This is WIP change for Markdown support.

@strzibny

Copy link
Copy Markdown
Contributor Author

Maybe we should call this .md() instead of .markdown() to align with serpapi/serpapi-python#39

Comment thread lib/serpapi/client.rb
# @param [String|Symbol, nil] output response format using the SerpApi output parameter [optional]
# @return [String|Hash] raw HTML, Markdown, or JSON / Hash
def search_archive(search_id, format = :json, output: nil)
format = output.to_s.to_sym unless output.nil?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why separate format and output arguments?

@trusche

trusche commented Aug 18, 2026

Copy link
Copy Markdown
Member

Maybe we should call this .md() instead of .markdown() to align with serpapi/serpapi-python#39

Personally I prefer markdown() over md()

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.

2 participants