Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

Add keystroke markdown #70

Open
Open

Description

@Mirdarthos

Current behavior

Currently, when adding a keystroke to a note, for example Up I have to use the HTML <kbd></kbd> tags.

Expected behavior

While this works fine, it would be much quicker to have a Markdown tag for it. I suggest double pipes. For example:

||Up||

Additionally

Additionally, it would also be awesome if the keystrokes are then displayed a bit differently thann the current text. Say, 110% size, in bold. Or something like that.

Environment

  • Boost Note.next version: 0.22.3
  • OS version and name: Manjaro Linux 21.2.4, but I don't think it makes a difference for this.

Activity

  1. Komediruzecki commented on Mar 31, 2022

    @Komediruzecki
    Collaborator

    Hi,

    I don't think we would get much by replacing the standard kbd tag with those pipes.

    However, for styling, you can easily do it through markdown preview CSS. You can change the current one or add completely your own style:

    image

    With these changes:
    image

  2. Mirdarthos commented on Apr 7, 2022

    @Mirdarthos
    Author

    The pipes would just have made the note typing much easier. It is a lot easier, and thus quicker, to type || Up || then it is to type <kbd>Up</kbd>, that's all.

    Regarding the styling, thank you, I've just implemented it.

  3. Komediruzecki commented on Apr 12, 2022

    @Komediruzecki
    Collaborator

    This would make it uncustom markdown, thus not so portable, do you have any examples of systems using this approach?

  4. Mirdarthos commented on Apr 12, 2022

    @Mirdarthos
    Author

    Unfortunately not. And I understand the portability, so it's OK. Just tried to give feedback and suggest a useful feature. I understand if it can't.

    Another option, that I just though of, and I'd write a plugin to do this for myself if possible, is to "parse" the markdown when saving it and look for the || <string> || pattern, replacing it with <kbd> <string> </kbd>. Or even as you type, or so on.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions