Skip to content

Commit

Permalink
Correctly render <kbd> tags
Browse files Browse the repository at this point in the history
closes #554
  • Loading branch information
srid committed Jan 19, 2025
1 parent 7083067 commit c0c0066
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guide/html-template/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Emanote provides client-side full-text search using [Stork](https://stork-search

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

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

Expand Down
1 change: 1 addition & 0 deletions emanote/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Live server now uses Tailwind 3 ([\#503](https://github.com/srid/emanote/pull/503))
- Enable auto identifier for org files ([\#502](https://github.com/srid/emanote/pull/502))
- Support date metadata from the filename when it begins with YYYY-MM-DD ([\#552](https://github.com/srid/emanote/pull/552)).
- Support for `<kbd>` rendering https://github.com/srid/heist-extra/pull/8
- Bug fixes:
- Emanote no longer crashes when run on an empty directory ([\#487](https://github.com/srid/emanote/issues/487))
- Stork search fixes
Expand Down
14 changes: 14 additions & 0 deletions emanote/default/templates/base.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@
font-family: monospace;
}

/* <kbd> styling */
kbd {
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow:
0 1px 1px rgba(0, 0, 0, 0.2),
0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
display: inline-block;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
}

/* Callouts */
div.callout {
background-color: #f5f5f5;
Expand Down
2 changes: 1 addition & 1 deletion emanote/emanote.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: emanote
version: 1.3.18.1
version: 1.3.19.0
license: AGPL-3.0-only
copyright: 2022 Sridhar Ratnakumar
maintainer: [email protected]
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0c0066

Please sign in to comment.