Skip to content

WYSIWYG-like keyboard shortcuts in Markdown #850

@cassidyjames

Description

@cassidyjames

When editing a Markdown README file or blog post, it would be handy to be able to use some familiar/standard WYSIWYG or word-processor-like keyboard shortcuts for text formatting:

  • Ctrl+B for bold (**strong**)
  • Ctrl+I for italic (_emphasis_)
  • Ctrl+K for link ([text](url))

For a great implementation, pressing the key should insert the characters and put the cursor where the user would most likely type next (i.e. between the ** or _, or in the [] of a link), while hitting the shortcut with selected text should wrap the text with the formatting characters. This is how GitHub—which users of Code are likely to be familiar with—handles it in their Markdown inputs.

This might be best implemented in an optional plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DesignNeeds the UX team to specify or implement a solution. May need new icons or css for examplePriority: WishlistAn enhancement or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions