rothsandro / eleventy-notes

A template for Eleventy to publish your personal notes or docs.
https://eleventy-notes.sandroroth.com/
140 stars 17 forks source link

Style <kbd> elements #35

Closed uncenter closed 1 year ago

uncenter commented 1 year ago

We could just use the existing "keypress" styling from the search bar, the hover animation looks cool.

image
rothsandro commented 1 year ago

Sorry for my late response, I took a break from coding.

Do you write HTML in your Markdown files to insert the kbd element or where do you want to use it?

uncenter commented 1 year ago

Well typically I use the syntax [[Ctrl]] + [[C]] but there interferes with the wikilink syntax...

rothsandro commented 1 year ago

Yes, that syntax would not work. Neither Markdown nor platforms like GitHub/Obsidian/... have a syntax for it. They just support using HTML directly (afaik). I would not like to introduce a special syntax that doesn't work in any other tool.

uncenter commented 1 year ago

Could just add styling for it and let users figure out how they want to add them?

uncenter commented 1 year ago

Thank you!