Skip to content

Add plaintext support to get-page #39

@malberts

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.

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