Skip to content

Add plaintext support to get-page #39

Description

@malberts

get-page currently supports returning no content, source, or HTML:

switch ( content ) {
case ContentFormat.noContent:
subEndpoint = '/bare';
break;
case ContentFormat.withSource:
subEndpoint = '';
break;
case ContentFormat.withHtml:
subEndpoint = '/with_html';
break;
}

We should add plaintext.

This might replace HTML mode. However, while the HTML is just noise as far as the actual content is concerned (e.g. for Claude to interpret the text), there might still be some other client or some other use case for doing something with the HTML.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions