Skip to content

Rich text paste into markdown #30542

Open
@silverwind

Description

Feature Description

When pasting text from the web pages into the markdown textarea, we can make it preserve certain features like links and maybe inline code blocks into the markdown output. For example copying a paragraph from MDN on Github pastes this:

A fetch() promise only rejects when the request fails, for example, because of a badly-formed request URL or a network error. A fetch() promise does not reject if the server responds with HTTP status codes that indicate errors (404, 504, etc.). Instead, a then() handler must check the Response.ok and/or Response.status properties.

GitHub's implementation has one annoyance: When copying a single link, the intention is more often than not to paste as plain text, so I would paste single links that are only surrounded by whitespace as plain.

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions