Skip to content

Commit c0c0066

Browse files
committed
Correctly render <kbd> tags
closes #554
1 parent 7083067 commit c0c0066

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

docs/guide/html-template/search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Emanote provides client-side full-text search using [Stork](https://stork-search
77

88
You can trigger search input in one of the following ways:
99

10-
- Press `Ctrl+K` (or `⌘K` on macOS).
10+
- Press <kbd>Ctrl+K</kbd> (or <kbd>⌘K</kbd> on macOS).
1111
- Click the lens icon on the sidebar
1212
- If the sidebar is disabled (eg.: you are on [[neuron-layout]]), the search lens icon will be on the top-right corner.
1313

emanote/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Live server now uses Tailwind 3 ([\#503](https://github.com/srid/emanote/pull/503))
2626
- Enable auto identifier for org files ([\#502](https://github.com/srid/emanote/pull/502))
2727
- Support date metadata from the filename when it begins with YYYY-MM-DD ([\#552](https://github.com/srid/emanote/pull/552)).
28+
- Support for `<kbd>` rendering https://github.com/srid/heist-extra/pull/8
2829
- Bug fixes:
2930
- Emanote no longer crashes when run on an empty directory ([\#487](https://github.com/srid/emanote/issues/487))
3031
- Stork search fixes

emanote/default/templates/base.tpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@
4040
font-family: monospace;
4141
}
4242
43+
/* <kbd> styling */
44+
kbd {
45+
background-color: #eee;
46+
border-radius: 3px;
47+
border: 1px solid #b4b4b4;
48+
box-shadow:
49+
0 1px 1px rgba(0, 0, 0, 0.2),
50+
0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
51+
display: inline-block;
52+
line-height: 1;
53+
padding: 2px 4px;
54+
white-space: nowrap;
55+
}
56+
4357
/* Callouts */
4458
div.callout {
4559
background-color: #f5f5f5;

emanote/emanote.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: emanote
3-
version: 1.3.18.1
3+
version: 1.3.19.0
44
license: AGPL-3.0-only
55
copyright: 2022 Sridhar Ratnakumar
66
maintainer: [email protected]

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)